@ -2211,19 +2211,36 @@ namespace Emby.Server.Implementations
TimeSpan . FromHours ( 12 ) :
TimeSpan . FromHours ( 12 ) :
TimeSpan . FromMinutes ( 5 ) ;
TimeSpan . FromMinutes ( 5 ) ;
var result = await new GithubUpdater ( HttpClient , JsonSerializer ) . CheckForUpdateResult ( "MediaBrowser" ,
try
"Emby" ,
{
ApplicationVersion ,
var result = await new GithubUpdater ( HttpClient , JsonSerializer ) . CheckForUpdateResult ( "MediaBrowser" ,
updateLevel ,
"Emby" ,
ReleaseAssetFilename ,
ApplicationVersion ,
"MBServer" ,
updateLevel ,
UpdateTargetFileN ame,
ReleaseAssetFilen ame,
cacheLength ,
"MBServer" ,
cancellationToken ) . ConfigureAwait ( false ) ;
UpdateTargetFileName ,
cacheLength ,
HasUpdateAvailable = result . IsUpdateAvailable ;
cancellationToken ) . ConfigureAwait ( false ) ;
return result ;
HasUpdateAvailable = result . IsUpdateAvailable ;
return result ;
}
catch ( HttpException ex )
{
// users are overreacting to this occasionally failing
if ( ex . StatusCode . HasValue & & ex . StatusCode . Value = = HttpStatusCode . Forbidden )
{
HasUpdateAvailable = false ;
return new CheckForUpdateResult
{
IsUpdateAvailable = false
} ;
}
throw ;
}
}
}
protected virtual string UpdateTargetFileName
protected virtual string UpdateTargetFileName