update multi-version preferences

This commit is contained in:
Luke Pulverenti 2017-03-31 15:04:50 -04:00
parent ba22934570
commit 6e4074ab8a

View File

@ -1,4 +1,5 @@
using MediaBrowser.Model.MediaInfo; using System;
using MediaBrowser.Model.MediaInfo;
using MediaBrowser.Model.Session; using MediaBrowser.Model.Session;
using System.Collections.Generic; using System.Collections.Generic;
using System.Linq; using System.Linq;
@ -47,16 +48,11 @@ namespace MediaBrowser.Model.Dlna
{ {
if (i.MediaSource.Bitrate.HasValue) if (i.MediaSource.Bitrate.HasValue)
{ {
if (i.MediaSource.Bitrate.Value <= maxBitrate.Value) return Math.Abs(i.MediaSource.Bitrate.Value - maxBitrate.Value);
{
return 0;
}
return 2;
} }
} }
return 1; return 0;
}).ToList(); }).ToList();
} }