mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-11-15 09:59:06 -07:00
Update TVDB provider to search based on series display order
This commit is contained in:
parent
1b2621cd30
commit
18e6cd429a
@ -158,8 +158,20 @@ namespace MediaBrowser.Providers.TV.TheTVDB
|
||||
// Prefer SxE over premiere date as it is more robust
|
||||
if (searchInfo.IndexNumber.HasValue && searchInfo.ParentIndexNumber.HasValue)
|
||||
{
|
||||
episodeQuery.AiredEpisode = searchInfo.IndexNumber.Value;
|
||||
episodeQuery.AiredSeason = searchInfo.ParentIndexNumber.Value;
|
||||
switch (searchInfo.SeriesDisplayOrder)
|
||||
{
|
||||
case "dvd":
|
||||
episodeQuery.DvdEpisode = searchInfo.IndexNumber.Value;
|
||||
episodeQuery.DvdSeason = searchInfo.ParentIndexNumber.Value;
|
||||
break;
|
||||
case "absolute":
|
||||
episodeQuery.AbsoluteNumber = searchInfo.IndexNumber.Value;
|
||||
break;
|
||||
default: //aired order
|
||||
episodeQuery.AiredEpisode = searchInfo.IndexNumber.Value;
|
||||
episodeQuery.AiredSeason = searchInfo.ParentIndexNumber.Value;
|
||||
break;
|
||||
}
|
||||
}
|
||||
else if (searchInfo.PremiereDate.HasValue)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user