diff options
| author | gnattu <gnattu@users.noreply.github.com> | 2024-09-18 21:22:53 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-09-18 07:22:53 -0600 |
| commit | 97d2f778f8490d12d4171acfcfd873a36587da8d (patch) | |
| tree | a4ba70f59fcf926b5a64cfe0a9032412092b7c65 /MediaBrowser.Controller/Entities/BaseItem.cs | |
| parent | 901573473d0f1b2e6b852ba6f92110b9d7bb2c0f (diff) | |
Only sort item by width when they have the same path (#12626)
Diffstat (limited to 'MediaBrowser.Controller/Entities/BaseItem.cs')
| -rw-r--r-- | MediaBrowser.Controller/Entities/BaseItem.cs | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/MediaBrowser.Controller/Entities/BaseItem.cs b/MediaBrowser.Controller/Entities/BaseItem.cs index 05a7b7896..414488853 100644 --- a/MediaBrowser.Controller/Entities/BaseItem.cs +++ b/MediaBrowser.Controller/Entities/BaseItem.cs @@ -1087,12 +1087,7 @@ namespace MediaBrowser.Controller.Entities return 1; }).ThenBy(i => i.Video3DFormat.HasValue ? 1 : 0) - .ThenByDescending(i => - { - var stream = i.VideoStream; - - return stream is null || stream.Width is null ? 0 : stream.Width.Value; - }) + .ThenByDescending(i => i, new MediaSourceWidthComparator()) .ToList(); } |
