mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-07-13 08:42:57 -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}}
|
// 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…
Add table
Add a link
Reference in a new issue