소스 검색

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