mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-07-08 23:00:51 +02:00
Fix PR issues
This commit is contained in:
parent
d529f81cd9
commit
81c135c5bb
|
@ -146,21 +146,23 @@ namespace Emby.Server.Implementations.Updates
|
|||
return availablePackages;
|
||||
}
|
||||
|
||||
/// <inheridoc />
|
||||
/// <inheritdoc />
|
||||
public IEnumerable<PackageVersionInfo> GetCompatibleVersions(
|
||||
IEnumerable<PackageVersionInfo> availableVersions,
|
||||
Version minVersion = null,
|
||||
PackageVersionClass classification = PackageVersionClass.Release)
|
||||
{
|
||||
var appVer = _applicationHost.ApplicationVersion;
|
||||
availableVersions = availableVersions.Where(x => Version.Parse(x.requiredVersionStr) <= appVer);
|
||||
availableVersions = availableVersions
|
||||
.Where(x => x.classification == classification
|
||||
&& Version.Parse(x.requiredVersionStr) <= appVer);
|
||||
|
||||
if (minVersion != null)
|
||||
{
|
||||
availableVersions = availableVersions.Where(x => x.Version >= minVersion);
|
||||
}
|
||||
|
||||
return availableVersions;
|
||||
return availableVersions.OrderByDescending(x => x.Version);
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
|
|
Loading…
Reference in a new issue