|
|
@ -2206,8 +2206,10 @@ namespace Emby.Server.Implementations
|
|
|
|
/// <returns>Task{CheckForUpdateResult}.</returns>
|
|
|
|
/// <returns>Task{CheckForUpdateResult}.</returns>
|
|
|
|
public async Task<CheckForUpdateResult> CheckForApplicationUpdate(CancellationToken cancellationToken, IProgress<double> progress)
|
|
|
|
public async Task<CheckForUpdateResult> CheckForApplicationUpdate(CancellationToken cancellationToken, IProgress<double> progress)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
var cacheLength = TimeSpan.FromMinutes(5);
|
|
|
|
|
|
|
|
var updateLevel = SystemUpdateLevel;
|
|
|
|
var updateLevel = SystemUpdateLevel;
|
|
|
|
|
|
|
|
var cacheLength = updateLevel == PackageVersionClass.Release ?
|
|
|
|
|
|
|
|
TimeSpan.FromHours(4) :
|
|
|
|
|
|
|
|
TimeSpan.FromMinutes(5);
|
|
|
|
|
|
|
|
|
|
|
|
var result = await new GithubUpdater(HttpClient, JsonSerializer).CheckForUpdateResult("MediaBrowser",
|
|
|
|
var result = await new GithubUpdater(HttpClient, JsonSerializer).CheckForUpdateResult("MediaBrowser",
|
|
|
|
"Emby",
|
|
|
|
"Emby",
|
|
|
|