Workaround for #748

pull/750/head
SuperPotatoMen 8 years ago committed by GitHub
parent d8b619bcc4
commit 7881a9d97c

@ -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