浏览代码

always consider audio played

Luke Pulverenti 12 年之前
父节点
当前提交
8563d8adb2
共有 1 个文件被更改,包括 5 次插入0 次删除
  1. 5 0
      MediaBrowser.Server.Implementations/Session/SessionManager.cs

+ 5 - 0
MediaBrowser.Server.Implementations/Session/SessionManager.cs

@@ -220,6 +220,11 @@ namespace MediaBrowser.Server.Implementations.Session
             data.PlayCount++;
             data.LastPlayedDate = DateTime.UtcNow;
 
+            if (!(item is Video))
+            {
+                data.Played = true;
+            }
+
             await _userDataRepository.SaveUserData(user.Id, key, data, CancellationToken.None).ConfigureAwait(false);
             
             // Nothing to save here