From 01a2bb3adcba929fd1a4c6416a31f9637ef0c919 Mon Sep 17 00:00:00 2001 From: Sean Callinan Date: Sat, 28 May 2016 10:15:25 +1200 Subject: [PATCH] Use HTTPS for the poster images, so there aren't any mixed content warnings when serving the application via an HTTPS reverse proxy --- PlexRequests.UI/Modules/SearchModule.cs | 2 +- PlexRequests.UI/Views/Requests/Index.cshtml | 2 +- PlexRequests.UI/Views/Search/Index.cshtml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/PlexRequests.UI/Modules/SearchModule.cs b/PlexRequests.UI/Modules/SearchModule.cs index efae9678a..9a578da98 100644 --- a/PlexRequests.UI/Modules/SearchModule.cs +++ b/PlexRequests.UI/Modules/SearchModule.cs @@ -473,7 +473,7 @@ namespace PlexRequests.UI.Modules Type = RequestType.Movie, Overview = movieInfo.Overview, ImdbId = movieInfo.ImdbId, - PosterPath = "http://image.tmdb.org/t/p/w150/" + movieInfo.PosterPath, + PosterPath = "https://image.tmdb.org/t/p/w150/" + movieInfo.PosterPath, Title = movieInfo.Title, ReleaseDate = movieInfo.ReleaseDate ?? DateTime.MinValue, Status = movieInfo.Status, diff --git a/PlexRequests.UI/Views/Requests/Index.cshtml b/PlexRequests.UI/Views/Requests/Index.cshtml index cdf45b288..df5ce4890 100644 --- a/PlexRequests.UI/Views/Requests/Index.cshtml +++ b/PlexRequests.UI/Views/Requests/Index.cshtml @@ -132,7 +132,7 @@
{{#if_eq type "movie"}} {{#if posterPath}} - poster + poster {{/if}} {{/if_eq}} {{#if_eq type "tv"}} diff --git a/PlexRequests.UI/Views/Search/Index.cshtml b/PlexRequests.UI/Views/Search/Index.cshtml index 64f56a0ce..a34bec151 100644 --- a/PlexRequests.UI/Views/Search/Index.cshtml +++ b/PlexRequests.UI/Views/Search/Index.cshtml @@ -144,7 +144,7 @@ {{#if_eq type "movie"}} {{#if posterPath}} - poster + poster {{/if}} {{/if_eq}} {{#if_eq type "tv"}}