expand on hardware decoding options

This commit is contained in:
Luke Pulverenti
2017-08-12 15:09:13 -04:00
parent b7867214ef
commit cf350f3b7e
7 changed files with 23 additions and 72 deletions

View File

@@ -1590,14 +1590,10 @@ namespace Emby.Server.Implementations
/// <returns>Task{CheckForUpdateResult}.</returns>
public override async Task<CheckForUpdateResult> CheckForApplicationUpdate(CancellationToken cancellationToken, IProgress<double> progress)
{
var cacheLength = TimeSpan.FromHours(3);
var cacheLength = TimeSpan.FromHours(1);
var updateLevel = SystemUpdateLevel;
if (updateLevel == PackageVersionClass.Beta)
{
cacheLength = TimeSpan.FromHours(1);
}
else if (updateLevel == PackageVersionClass.Dev)
if (updateLevel != PackageVersionClass.Release)
{
cacheLength = TimeSpan.FromMinutes(5);
}