diff options
| author | Luke Pulverenti <luke.pulverenti@gmail.com> | 2014-10-14 00:22:17 -0400 |
|---|---|---|
| committer | Luke Pulverenti <luke.pulverenti@gmail.com> | 2014-10-14 00:22:17 -0400 |
| commit | 1d70f5469f68c1f576bad85ff35930b593e955de (patch) | |
| tree | 57b3d4c4bf675c9dda9e5b12a635e9831253ae5a /MediaBrowser.Api/Playback/BaseStreamingService.cs | |
| parent | 16bc1f35ff36a1a91bb0e8851a354349cbb07ff7 (diff) | |
update connect
Diffstat (limited to 'MediaBrowser.Api/Playback/BaseStreamingService.cs')
| -rw-r--r-- | MediaBrowser.Api/Playback/BaseStreamingService.cs | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/MediaBrowser.Api/Playback/BaseStreamingService.cs b/MediaBrowser.Api/Playback/BaseStreamingService.cs index 8b5395488..fa6f88cc4 100644 --- a/MediaBrowser.Api/Playback/BaseStreamingService.cs +++ b/MediaBrowser.Api/Playback/BaseStreamingService.cs @@ -1591,7 +1591,9 @@ namespace MediaBrowser.Api.Playback state.InputFileSize = mediaSource.Size; state.InputBitrate = mediaSource.Bitrate; - if (item is Video) + var video = item as Video; + + if (video != null) { state.IsInputVideo = true; @@ -1608,6 +1610,11 @@ namespace MediaBrowser.Api.Playback { state.InputTimestamp = mediaSource.Timestamp.Value; } + + if (video.IsShortcut) + { + state.MediaPath = File.ReadAllText(video.Path); + } } state.RunTimeTicks = mediaSource.RunTimeTicks; |
