Find latest version of classes greater than specified

pull/702/head
Eric Reed 12 years ago
parent a15b6db0dc
commit a0cb8a3731

@ -154,7 +154,7 @@ namespace MediaBrowser.Installer
var json = await client.DownloadStringTaskAsync("http://www.mb3admin.com/admin/service/package/retrieveAll?name=" + PackageName);
var packages = JsonSerializer.DeserializeFromString<List<PackageInfo>>(json);
var version = packages[0].versions.Where(v => v.classification == PackageClass).OrderByDescending(v => v.version).FirstOrDefault(v => v.version <= PackageVersion);
var version = packages[0].versions.Where(v => v.classification <= PackageClass).OrderByDescending(v => v.version).FirstOrDefault(v => v.version <= PackageVersion);
if (version == null)
{
SystemClose("Could not locate download package. Aborting.");

Loading…
Cancel
Save