mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-08-22 22:23:34 -07:00
Retro-compatibility for Plex content URL
Solves URL for media synced before absolute URL was saved in PlexServerContent
This commit is contained in:
parent
4ddf851311
commit
1f5d5026da
1 changed files with 10 additions and 2 deletions
|
@ -90,7 +90,15 @@ namespace Ombi.Core.Rule.Rules.Search
|
|||
useTheMovieDb = true;
|
||||
}
|
||||
obj.Available = true;
|
||||
obj.PlexUrl = item.Url;
|
||||
if (item.Url.StartsWith("http"))
|
||||
{
|
||||
obj.PlexUrl = item.Url;
|
||||
}
|
||||
else
|
||||
{
|
||||
// legacy content
|
||||
obj.PlexUrl = PlexHelper.BuildPlexMediaUrl(item.Url, host);
|
||||
}
|
||||
obj.Quality = item.Quality;
|
||||
|
||||
if (obj.Type == RequestType.TvShow)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue