Merge pull request #750 from tidusjar/SuperPotatoMen-patch-2

Workaround for #748
pull/758/head
SuperPotatoMen 8 years ago committed by GitHub
commit 0edc0bc77d

@ -238,18 +238,18 @@ namespace PlexRequests.Core.Migration.Migrations
// UI = https://image.tmdb.org/t/p/w150/{{posterPath}} // UI = https://image.tmdb.org/t/p/w150/{{posterPath}}
// Update old invalid posters // Update old invalid posters
var allRequests = RequestService.GetAll().ToList(); // var allRequests = RequestService.GetAll().ToList();
foreach (var req in allRequests) // foreach (var req in allRequests)
{ // {
if (req.PosterPath.Contains("https://image.tmdb.org/t/p/w150/")) // 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); // var newImg = req.PosterPath.Replace("https://image.tmdb.org/t/p/w150/", string.Empty);
req.PosterPath = newImg; // req.PosterPath = newImg;
} // }
} // }
RequestService.BatchUpdate(allRequests); // RequestService.BatchUpdate(allRequests);
} }
private void UpdateAdmin() private void UpdateAdmin()
{ {

Loading…
Cancel
Save