mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-07-12 16:22:55 -07:00
Workaround for #748
This commit is contained in:
parent
d8b619bcc4
commit
7881a9d97c
1 changed files with 11 additions and 11 deletions
|
@ -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();
|
||||
// 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);
|
||||
}
|
||||
// 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…
Add table
Add a link
Reference in a new issue