Your ROOT_URL in app.ini is https://git.cloudchain.link/ but you are visiting https://dash.bss.nz/open-source-mirrors/Lidarr/commit/fe3761fc2e17f3afd91cf788769ab8826cda9d0a
You should set ROOT_URL correctly, otherwise the web may not work correctly.
2 changed files with
11 additions and
2 deletions
@ -32,7 +32,7 @@ namespace NzbDrone.Core.HealthCheck.Checks
}
var fpcalcVersion = _fingerprintingService . FpcalcVersion ( ) ;
if ( fpcalcVersion = = null | | fpcalcVersion < new Version ( "1. 4.3 ") )
if ( fpcalcVersion = = null | | fpcalcVersion < new Version ( "1. 2.0 ") )
{
return new HealthCheck ( GetType ( ) , HealthCheckResult . Warning , $"You have an old version of fpcalc. Please upgrade to 1.4.3." , "#fpcalc-upgrade" ) ;
}
@ -14,6 +14,7 @@ using NzbDrone.Common.EnvironmentInfo;
using System.Threading ;
using System.Text.RegularExpressions ;
using Newtonsoft.Json ;
using NzbDrone.Common.Cache ;
namespace NzbDrone.Core.Parser
{
@ -39,16 +40,19 @@ namespace NzbDrone.Core.Parser
private readonly Logger _logger ;
private readonly IHttpClient _httpClient ;
private readonly IHttpRequestBuilderFactory _customerRequestBuilder ;
private readonly ICached < AcoustId > _cache ;
private readonly string _fpcalcPath ;
private readonly Version _fpcalcVersion ;
private readonly string _fpcalcArgs ;
public FingerprintingService ( Logger logger ,
IHttpClient httpClient )
IHttpClient httpClient ,
ICacheManager cacheManager )
{
_logger = logger ;
_httpClient = httpClient ;
_cache = cacheManager . GetCache < AcoustId > ( GetType ( ) ) ;
_customerRequestBuilder = new HttpRequestBuilder ( _acoustIdUrl ) . CreateFactory ( ) ;
@ -211,6 +215,11 @@ namespace NzbDrone.Core.Parser
}
public AcoustId GetFingerprint ( string file )
{
return _cache . Get ( file , ( ) = > GetFingerprintUncached ( file ) , TimeSpan . FromMinutes ( 30 ) ) ;
}
private AcoustId GetFingerprintUncached ( string file )
{
if ( IsSetup ( ) & & File . Exists ( file ) )
{