mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-06-07 00:08:29 +01:00
update EpisodeResolver
This commit is contained in:
@@ -64,6 +64,12 @@ namespace Emby.Server.Implementations.Library.Resolvers.TV
|
|||||||
episode.SeasonId = season.Id;
|
episode.SeasonId = season.Id;
|
||||||
episode.SeasonName = season.Name;
|
episode.SeasonName = season.Name;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Assume season 1 if there's no season folder and a season number could not be determined
|
||||||
|
if (season == null && !episode.ParentIndexNumber.HasValue && (episode.IndexNumber.HasValue || episode.PremiereDate.HasValue))
|
||||||
|
{
|
||||||
|
episode.ParentIndexNumber = 1;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return episode;
|
return episode;
|
||||||
|
|||||||
Reference in New Issue
Block a user