mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-07-14 01:02:57 -07:00
add an extra check when determining if a tv show is already available (also check if it starts with the show name returned from the tv db)
This commit is contained in:
parent
4c6c0ae900
commit
1fbe29af10
1 changed files with 3 additions and 1 deletions
|
@ -199,7 +199,9 @@ namespace PlexRequests.Services
|
|||
|
||||
public bool IsTvShowAvailable(PlexTvShow[] plexShows, string title, string year)
|
||||
{
|
||||
return plexShows.Any(x => x.Title.Equals(title, StringComparison.CurrentCultureIgnoreCase) && x.ReleaseYear.Equals(year, StringComparison.CurrentCultureIgnoreCase));
|
||||
return plexShows.Any(x =>
|
||||
(x.Title.Equals(title, StringComparison.CurrentCultureIgnoreCase) || x.Title.StartsWith(title, StringComparison.CurrentCultureIgnoreCase)) &&
|
||||
x.ReleaseYear.Equals(year, StringComparison.CurrentCultureIgnoreCase));
|
||||
}
|
||||
|
||||
public List<PlexAlbum> GetPlexAlbums()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue