check SupportsDirectStream
This commit is contained in:
parent
814c38abfc
commit
84244b8cac
|
@ -314,7 +314,10 @@ namespace MediaBrowser.Server.Implementations.Session
|
|||
if (!string.Equals(info.ItemId, info.MediaSourceId) &&
|
||||
!string.IsNullOrWhiteSpace(info.MediaSourceId))
|
||||
{
|
||||
runtimeTicks = _libraryManager.GetItemById(new Guid(info.MediaSourceId)).RunTimeTicks;
|
||||
var runtimeItem = _libraryManager.GetItemById(new Guid(info.MediaSourceId)) ??
|
||||
_libraryManager.GetItemById(info.ItemId);
|
||||
|
||||
runtimeTicks = runtimeItem.RunTimeTicks;
|
||||
}
|
||||
|
||||
var current = session.NowPlayingItem;
|
||||
|
|
Loading…
Reference in New Issue
Block a user