Your ROOT_URL in app.ini is https://git.cloudchain.link/ but you are visiting https://dash.bss.nz/open-source-mirrors/Prowlarr/commit/d538fe62cfdfca01c397acd222555220f045ce63
You should set ROOT_URL correctly, otherwise the web may not work correctly.
3 changed files with
39 additions and
1 deletions
@ -0,0 +1,37 @@
using System ;
using System.Collections.Generic ;
using System.IO ;
using System.Linq ;
using System.Text ;
using System.Text.RegularExpressions ;
using NzbDrone.Common ;
using NzbDrone.Common.Messaging ;
using NzbDrone.Core.Lifecycle ;
namespace NzbDrone.Api.Client
{
public class ClientSettings : IHandle < ApplicationStartedEvent >
{
private readonly EnvironmentProvider _environmentProvider ;
private static readonly Regex VersionRegex = new Regex ( @"(?<=Version:\s')(.*)(?=')" , RegexOptions . IgnoreCase | RegexOptions . Compiled ) ;
public ClientSettings ( EnvironmentProvider environmentProvider )
{
_environmentProvider = environmentProvider ;
}
public void Handle ( ApplicationStartedEvent message )
{
//TODO: Update the APIKey (when we have it)
var appFile = Path . Combine ( _environmentProvider . StartUpPath , "UI" , "app.js" ) ;
var contents = File . ReadAllText ( appFile ) ;
var version = _environmentProvider . Version ;
contents = VersionRegex . Replace ( contents , version . ToString ( ) ) ;
File . WriteAllText ( appFile , contents ) ;
}
}
}
@ -98,6 +98,7 @@
<Compile Include= "ClientSchema\Field.cs" />
<Compile Include= "ClientSchema\SchemaBuilder.cs" />
<Compile Include= "ClientSchema\SelectOption.cs" />
<Compile Include= "Client\ClientSettings.cs" />
<Compile Include= "Commands\CommandModule.cs" />
<Compile Include= "Commands\CommandResource.cs" />
<Compile Include= "Directories\DirectoryModule.cs" />
@ -7,7 +7,7 @@ define(['app',
initialize : function ( ) {
this . model = new NzbDrone . Shared . Footer . Model ( ) ;
this . model . version = NzbDrone . Constants . Version ;
this . model . set( 'version' , NzbDrone . Constants . Version ) ;
}
} ) ;