3.0.5309.26857

This commit is contained in:
Luke Pulverenti 2014-07-15 15:57:27 -04:00
parent 4ef1a70fc5
commit 21c3430ac4
2 changed files with 2 additions and 2 deletions

View File

@ -265,7 +265,7 @@ namespace MediaBrowser.Providers.Subtitles
var hasCopy = hash;
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))
.ThenByDescending(x => int.Parse(x.SubDownloadsCnt, _usCulture))
.ThenByDescending(x => double.Parse(x.SubRating, _usCulture))

View File

@ -385,7 +385,7 @@ namespace MediaBrowser.Server.Implementations.Channels
var val = width.Value;
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))
.ThenByDescending(i => i.Width ?? 0)
.ThenBy(list.IndexOf)