From 7881a9d97c60be1928bf54ef4dc68b43f3242947 Mon Sep 17 00:00:00 2001 From: SuperPotatoMen Date: Fri, 9 Dec 2016 00:49:59 +0100 Subject: [PATCH 1/2] Workaround for #748 --- .../Migrations/Version1100.cs | 24 +++++++++---------- 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/PlexRequests.Core.Migration/Migrations/Version1100.cs b/PlexRequests.Core.Migration/Migrations/Version1100.cs index 15c127d6e..ab028f847 100644 --- a/PlexRequests.Core.Migration/Migrations/Version1100.cs +++ b/PlexRequests.Core.Migration/Migrations/Version1100.cs @@ -238,18 +238,18 @@ namespace PlexRequests.Core.Migration.Migrations // UI = https://image.tmdb.org/t/p/w150/{{posterPath}} // Update old invalid posters - var allRequests = RequestService.GetAll().ToList(); - - foreach (var req in allRequests) - { - if (req.PosterPath.Contains("https://image.tmdb.org/t/p/w150/")) - { - var newImg = req.PosterPath.Replace("https://image.tmdb.org/t/p/w150/", string.Empty); - req.PosterPath = newImg; - } - } - RequestService.BatchUpdate(allRequests); - } + // var allRequests = RequestService.GetAll().ToList(); + + // foreach (var req in allRequests) + // { + // if (req.PosterPath.Contains("https://image.tmdb.org/t/p/w150/")) + // { + // var newImg = req.PosterPath.Replace("https://image.tmdb.org/t/p/w150/", string.Empty); + // req.PosterPath = newImg; + // } + // } + // RequestService.BatchUpdate(allRequests); + // } private void UpdateAdmin() { From 2fa11280bf595548e87c85b790f2422f3e60c35e Mon Sep 17 00:00:00 2001 From: SuperPotatoMen Date: Fri, 9 Dec 2016 00:54:49 +0100 Subject: [PATCH 2/2] Update Version1100.cs --- PlexRequests.Core.Migration/Migrations/Version1100.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PlexRequests.Core.Migration/Migrations/Version1100.cs b/PlexRequests.Core.Migration/Migrations/Version1100.cs index ab028f847..012bcd126 100644 --- a/PlexRequests.Core.Migration/Migrations/Version1100.cs +++ b/PlexRequests.Core.Migration/Migrations/Version1100.cs @@ -249,7 +249,7 @@ namespace PlexRequests.Core.Migration.Migrations // } // } // RequestService.BatchUpdate(allRequests); - // } + } private void UpdateAdmin() {