aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Api/VideosService.cs
diff options
context:
space:
mode:
authorPatrick Barron <barronpm@gmail.com>2020-04-05 15:56:08 -0400
committerPatrick Barron <barronpm@gmail.com>2020-04-05 15:56:08 -0400
commite1958e3902ae81931c82a31f355cefc2b02a8a2d (patch)
treef9b0532f5df640035eaceed5d6e34f0982ce1a05 /MediaBrowser.Api/VideosService.cs
parentadd0a2088de154137cf547f84c85f59a78e442d8 (diff)
Miscellaneous code cleanup
Diffstat (limited to 'MediaBrowser.Api/VideosService.cs')
-rw-r--r--MediaBrowser.Api/VideosService.cs6
1 files changed, 2 insertions, 4 deletions
diff --git a/MediaBrowser.Api/VideosService.cs b/MediaBrowser.Api/VideosService.cs
index 9d7dc2dfc..76e9f421d 100644
--- a/MediaBrowser.Api/VideosService.cs
+++ b/MediaBrowser.Api/VideosService.cs
@@ -138,10 +138,8 @@ namespace MediaBrowser.Api
var videosWithVersions = items.Where(i => i.MediaSourceCount > 1)
.ToList();
- var primaryVersion = videosWithVersions.FirstOrDefault() ?? items.OrderBy(i =>
- {
- return (i.Video3DFormat.HasValue || i.VideoType != Model.Entities.VideoType.VideoFile) ? 1 : 0;
- })
+ var primaryVersion = videosWithVersions.FirstOrDefault() ?? items.OrderBy(i
+ => (i.Video3DFormat.HasValue || i.VideoType != Model.Entities.VideoType.VideoFile) ? 1 : 0)
.ThenByDescending(i =>
{
var stream = i.GetDefaultVideoStream();