diff options
| author | Luke <luke.pulverenti@gmail.com> | 2017-04-27 14:24:55 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-04-27 14:24:55 -0400 |
| commit | 25b25afbb837adcb0af723f63ad54f9be8fe7de7 (patch) | |
| tree | bc8ec4c0170f1a8e34f88587e2335a63658cf830 /MediaBrowser.Api/Playback/BaseStreamingService.cs | |
| parent | 859a8f95877725c2aeafda3eb95776ff25fcdd75 (diff) | |
| parent | 0f07d97031f8680dc9df0ad8752141c46bbc9c2b (diff) | |
Merge pull request #2598 from MediaBrowser/dev
Dev
Diffstat (limited to 'MediaBrowser.Api/Playback/BaseStreamingService.cs')
| -rw-r--r-- | MediaBrowser.Api/Playback/BaseStreamingService.cs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/MediaBrowser.Api/Playback/BaseStreamingService.cs b/MediaBrowser.Api/Playback/BaseStreamingService.cs index 699c4bbb2..6935073a9 100644 --- a/MediaBrowser.Api/Playback/BaseStreamingService.cs +++ b/MediaBrowser.Api/Playback/BaseStreamingService.cs @@ -720,6 +720,13 @@ namespace MediaBrowser.Api.Playback state.IsInputVideo = string.Equals(item.MediaType, MediaType.Video, StringComparison.OrdinalIgnoreCase); + var primaryImage = item.GetImageInfo(ImageType.Primary, 0) ?? + item.Parents.Select(i => i.GetImageInfo(ImageType.Primary, 0)).FirstOrDefault(i => i != null); + if (primaryImage != null) + { + state.AlbumCoverPath = primaryImage.Path; + } + MediaSourceInfo mediaSource = null; if (string.IsNullOrWhiteSpace(request.LiveStreamId)) { |
