mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-06-03 22:38:30 +01:00
mark games played when played through nesbox
This commit is contained in:
@@ -1337,6 +1337,13 @@ namespace MediaBrowser.Controller.Entities
|
||||
|
||||
var data = userManager.GetUserData(user.Id, key);
|
||||
|
||||
if (datePlayed.HasValue)
|
||||
{
|
||||
// Incremenet
|
||||
data.PlayCount++;
|
||||
}
|
||||
|
||||
// Ensure it's at least one
|
||||
data.PlayCount = Math.Max(data.PlayCount, 1);
|
||||
|
||||
data.LastPlayedDate = datePlayed ?? data.LastPlayedDate;
|
||||
|
||||
Reference in New Issue
Block a user