track progress for any item that supports the feature

This commit is contained in:
dkanada
2019-12-14 11:36:06 +09:00
parent f1fc6ef59f
commit 02928128b9
2 changed files with 5 additions and 11 deletions

View File

@@ -667,12 +667,9 @@ namespace Emby.Server.Implementations.Session
data.PlayCount++;
data.LastPlayedDate = DateTime.UtcNow;
if (item.SupportsPlayedStatus)
if (item.SupportsPlayedStatus && !item.SupportsPositionTicksResume)
{
if (!(item is Video))
{
data.Played = true;
}
data.Played = true;
}
else
{
@@ -769,7 +766,6 @@ namespace Emby.Server.Implementations.Session
{
_userDataManager.SaveUserData(user, item, data, UserDataSaveReason.PlaybackProgress, CancellationToken.None);
}
}
private static bool UpdatePlaybackSettings(User user, PlaybackProgressInfo info, UserItemData data)