瀏覽代碼

Merge pull request #7785 from dmitrylyzo/clear-transcodinginfo

Clear TranscodingInfo if play method changed
Cody Robibero 3 年之前
父節點
當前提交
c9491cf317
共有 1 個文件被更改,包括 5 次插入0 次删除
  1. 5 0
      Emby.Server.Implementations/Session/SessionManager.cs

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

@@ -770,6 +770,11 @@ namespace Emby.Server.Implementations.Session
 
             await UpdateNowPlayingItem(session, info, libraryItem, !isAutomated).ConfigureAwait(false);
 
+            if (!string.IsNullOrEmpty(session.DeviceId) && info.PlayMethod != PlayMethod.Transcode)
+            {
+                ClearTranscodingInfo(session.DeviceId);
+            }
+
             var users = GetUsers(session);
 
             // only update saved user data on actual check-ins, not automated ones