This commit is contained in:
MrTimscampi 2020-12-01 19:26:51 +01:00
parent 21a67a66d2
commit 7ba9ba4780

View File

@ -192,7 +192,7 @@ namespace Emby.Server.Implementations.TV
Func<Episode> getEpisode = () => Func<Episode> getEpisode = () =>
{ {
var nextEpsiode = _libraryManager.GetItemList(new InternalItemsQuery(user) var nextEpisode = _libraryManager.GetItemList(new InternalItemsQuery(user)
{ {
AncestorWithPresentationUniqueKey = null, AncestorWithPresentationUniqueKey = null,
SeriesPresentationUniqueKey = seriesKey, SeriesPresentationUniqueKey = seriesKey,
@ -206,14 +206,14 @@ namespace Emby.Server.Implementations.TV
DtoOptions = dtoOptions DtoOptions = dtoOptions
}).Cast<Episode>().FirstOrDefault(); }).Cast<Episode>().FirstOrDefault();
var userData = _userDataManager.GetUserData(user, nextEpsiode); var userData = _userDataManager.GetUserData(user, nextEpisode);
if (userData.PlaybackPositionTicks > 0) if (userData.PlaybackPositionTicks > 0)
{ {
return null; return null;
} }
return nextEpsiode; return nextEpisode;
}; };
if (lastWatchedEpisode != null) if (lastWatchedEpisode != null)