|
|
@ -277,15 +277,7 @@ namespace Emby.Server.Implementations.Updates
|
|
|
|
|
|
|
|
|
|
|
|
private TimeSpan GetCacheLength()
|
|
|
|
private TimeSpan GetCacheLength()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
switch (GetSystemUpdateLevel())
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
case PackageVersionClass.Beta:
|
|
|
|
|
|
|
|
return TimeSpan.FromMinutes(30);
|
|
|
|
|
|
|
|
case PackageVersionClass.Dev:
|
|
|
|
|
|
|
|
return TimeSpan.FromMinutes(3);
|
|
|
|
return TimeSpan.FromMinutes(3);
|
|
|
|
default:
|
|
|
|
|
|
|
|
return TimeSpan.FromHours(24);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
protected PackageInfo[] FilterPackages(List<PackageInfo> packages)
|
|
|
|
protected PackageInfo[] FilterPackages(List<PackageInfo> packages)
|
|
|
|