mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-12-24 09:44:47 +03:00
update display of active recordings
This commit is contained in:
@@ -633,10 +633,14 @@ namespace MediaBrowser.Server.Implementations.Session
|
||||
data.PlayCount++;
|
||||
data.LastPlayedDate = DateTime.UtcNow;
|
||||
|
||||
if (!(item is Video))
|
||||
if (!(item is Video) && item.SupportsPlayedStatus)
|
||||
{
|
||||
data.Played = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
data.Played = false;
|
||||
}
|
||||
|
||||
await _userDataManager.SaveUserData(userId, item, data, UserDataSaveReason.PlaybackStart, CancellationToken.None).ConfigureAwait(false);
|
||||
}
|
||||
@@ -847,11 +851,11 @@ namespace MediaBrowser.Server.Implementations.Session
|
||||
{
|
||||
playedToCompletion = _userDataManager.UpdatePlayState(item, data, positionTicks.Value);
|
||||
}
|
||||
else
|
||||
else
|
||||
{
|
||||
// If the client isn't able to report this, then we'll just have to make an assumption
|
||||
data.PlayCount++;
|
||||
data.Played = true;
|
||||
data.Played = item.SupportsPlayedStatus;
|
||||
data.PlaybackPositionTicks = 0;
|
||||
playedToCompletion = true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user