mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-09-06 19:37:55 +02:00
Find latest version of classes greater than specified
This commit is contained in:
parent
a15b6db0dc
commit
a0cb8a3731
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue