2
0
Эх сурвалжийг харах

Clear TranscodingInfo if play method changed

Dmitry Lyzo 3 жил өмнө
parent
commit
ff4f624850

+ 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);
             await UpdateNowPlayingItem(session, info, libraryItem, !isAutomated).ConfigureAwait(false);
 
 
+            if (!string.IsNullOrEmpty(session.DeviceId) && info.PlayMethod != PlayMethod.Transcode)
+            {
+                ClearTranscodingInfo(session.DeviceId);
+            }
+
             var users = GetUsers(session);
             var users = GetUsers(session);
 
 
             // only update saved user data on actual check-ins, not automated ones
             // only update saved user data on actual check-ins, not automated ones