mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-02-16 01:22:55 +00:00
update m3u tuner
This commit is contained in:
@@ -308,9 +308,11 @@ namespace Emby.Server.Implementations.Updates
|
||||
.OrderByDescending(GetPackageVersion).ToArray();
|
||||
}
|
||||
|
||||
IEnumerable<PackageInfo> packagesList = packages;
|
||||
|
||||
if (!string.IsNullOrWhiteSpace(packageType))
|
||||
{
|
||||
packages = packages.Where(p => string.Equals(p.type, packageType, StringComparison.OrdinalIgnoreCase)).ToArray();
|
||||
packagesList = packagesList.Where(p => string.Equals(p.type, packageType, StringComparison.OrdinalIgnoreCase));
|
||||
}
|
||||
|
||||
// If an app version was supplied, filter the versions for each package to only include supported versions
|
||||
@@ -323,7 +325,9 @@ namespace Emby.Server.Implementations.Updates
|
||||
}
|
||||
|
||||
// Remove packages with no versions
|
||||
return packages.Where(p => p.versions.Any()).ToArray();
|
||||
packagesList = packagesList.Where(p => p.versions.Any());
|
||||
|
||||
return packagesList.ToArray();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
Reference in New Issue
Block a user