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}}
// 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()
{

Loading…
Cancel
Save