Only sort item by width when they have the same path (#12626)

This commit is contained in:
gnattu
2024-09-18 21:22:53 +08:00
committed by GitHub
parent 901573473d
commit 97d2f778f8
2 changed files with 57 additions and 6 deletions

View File

@@ -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();
}