Merge pull request #7785 from dmitrylyzo/clear-transcodinginfo

Clear TranscodingInfo if play method changed
This commit is contained in:
Cody Robibero 2022-05-24 07:59:13 -06:00 committed by GitHub
commit c9491cf317
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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