mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-07-16 02:02:55 -07:00
added background property to tvrequests API (#2172)
* Added background property to TvRequests * set background property for new requests and display in UI
This commit is contained in:
parent
bd741e053f
commit
025797c1ba
8 changed files with 1003 additions and 3 deletions
|
@ -18,5 +18,19 @@ namespace Ombi.Helpers
|
|||
|
||||
return poster;
|
||||
}
|
||||
|
||||
public static string FixBackgroundPath(string background)
|
||||
{
|
||||
// https://image.tmdb.org/t/p/w1280/fJAvGOitU8y53ByeHnM4avtKFaG.jpg
|
||||
|
||||
if (background.Contains("image.tmdb.org", CompareOptions.IgnoreCase))
|
||||
{
|
||||
// Somehow we have a full path here for the poster, we only want the last segment
|
||||
var backgroundSegments = background.Split('/');
|
||||
return backgroundSegments.Last();
|
||||
}
|
||||
|
||||
return background;
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue