mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-09-06 05:47:14 -04:00
3.0.5309.26857
This commit is contained in:
parent
4ef1a70fc5
commit
21c3430ac4
@ -265,7 +265,7 @@ namespace MediaBrowser.Providers.Subtitles
|
|||||||
var hasCopy = hash;
|
var hasCopy = hash;
|
||||||
|
|
||||||
return results.Where(x => x.SubBad == "0" && mediaFilter(x))
|
return results.Where(x => x.SubBad == "0" && mediaFilter(x))
|
||||||
.OrderBy(x => x.MovieHash == hash)
|
.OrderBy(x => (x.MovieHash == hash ? 0 : 1))
|
||||||
.ThenBy(x => Math.Abs(long.Parse(x.MovieByteSize, _usCulture) - movieByteSize))
|
.ThenBy(x => Math.Abs(long.Parse(x.MovieByteSize, _usCulture) - movieByteSize))
|
||||||
.ThenByDescending(x => int.Parse(x.SubDownloadsCnt, _usCulture))
|
.ThenByDescending(x => int.Parse(x.SubDownloadsCnt, _usCulture))
|
||||||
.ThenByDescending(x => double.Parse(x.SubRating, _usCulture))
|
.ThenByDescending(x => double.Parse(x.SubRating, _usCulture))
|
||||||
|
@ -385,7 +385,7 @@ namespace MediaBrowser.Server.Implementations.Channels
|
|||||||
var val = width.Value;
|
var val = width.Value;
|
||||||
|
|
||||||
var res = list
|
var res = list
|
||||||
.OrderBy(i => i.Width.HasValue && i.Width.Value <= val)
|
.OrderBy(i => (i.Width.HasValue && i.Width.Value <= val ? 0 : 1))
|
||||||
.ThenBy(i => Math.Abs((i.Width ?? 0) - val))
|
.ThenBy(i => Math.Abs((i.Width ?? 0) - val))
|
||||||
.ThenByDescending(i => i.Width ?? 0)
|
.ThenByDescending(i => i.Width ?? 0)
|
||||||
.ThenBy(list.IndexOf)
|
.ThenBy(list.IndexOf)
|
||||||
|
Loading…
Reference in New Issue
Block a user