mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-07-08 02:34:19 -04:00
always consider audio played
This commit is contained in:
parent
0cabe8808e
commit
8563d8adb2
@ -220,6 +220,11 @@ namespace MediaBrowser.Server.Implementations.Session
|
|||||||
data.PlayCount++;
|
data.PlayCount++;
|
||||||
data.LastPlayedDate = DateTime.UtcNow;
|
data.LastPlayedDate = DateTime.UtcNow;
|
||||||
|
|
||||||
|
if (!(item is Video))
|
||||||
|
{
|
||||||
|
data.Played = true;
|
||||||
|
}
|
||||||
|
|
||||||
await _userDataRepository.SaveUserData(user.Id, key, data, CancellationToken.None).ConfigureAwait(false);
|
await _userDataRepository.SaveUserData(user.Id, key, data, CancellationToken.None).ConfigureAwait(false);
|
||||||
|
|
||||||
// Nothing to save here
|
// Nothing to save here
|
||||||
|
Loading…
x
Reference in New Issue
Block a user