diff options
| author | Luke Pulverenti <luke.pulverenti@gmail.com> | 2015-03-17 00:08:09 -0400 |
|---|---|---|
| committer | Luke Pulverenti <luke.pulverenti@gmail.com> | 2015-03-17 00:08:09 -0400 |
| commit | 84244b8cacd86f7da8b587e04b577faea2101099 (patch) | |
| tree | 7c74fb134ba5033e54ebfd6a39b64ba381bfba93 | |
| parent | 814c38abfcacb1499cc67811db432eaceb5f12fb (diff) | |
check SupportsDirectStream
| -rw-r--r-- | MediaBrowser.Server.Implementations/Session/SessionManager.cs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/MediaBrowser.Server.Implementations/Session/SessionManager.cs b/MediaBrowser.Server.Implementations/Session/SessionManager.cs index 8a21ed6bd..5ea970426 100644 --- a/MediaBrowser.Server.Implementations/Session/SessionManager.cs +++ b/MediaBrowser.Server.Implementations/Session/SessionManager.cs @@ -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; |
