|
|
|
@ -60,7 +60,11 @@ namespace MediaBrowser.Common.Implementations.Updates
|
|
|
|
|
}
|
|
|
|
|
else if (updateLevel == PackageVersionClass.Beta)
|
|
|
|
|
{
|
|
|
|
|
obj = obj.Where(i => !i.prerelease || !i.name.EndsWith("-dev", StringComparison.OrdinalIgnoreCase)).ToArray();
|
|
|
|
|
obj = obj.Where(i => !i.prerelease || i.name.EndsWith("-beta", StringComparison.OrdinalIgnoreCase)).ToArray();
|
|
|
|
|
}
|
|
|
|
|
else if (updateLevel == PackageVersionClass.Dev)
|
|
|
|
|
{
|
|
|
|
|
obj = obj.Where(i => !i.prerelease || i.name.EndsWith("-beta", StringComparison.OrdinalIgnoreCase) || i.name.EndsWith("-dev", StringComparison.OrdinalIgnoreCase)).ToArray();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
var availableUpdate = obj.Select(i => CheckForUpdateResult(i, minVersion, assetFilename, packageName, targetFilename)).FirstOrDefault(i => i != null);
|
|
|
|
|