Your ROOT_URL in app.ini is https://git.cloudchain.link/ but you are visiting https://dash.bss.nz/open-source-mirrors/Radarr/commit/a36216c73ca8aa784ee151d4669c8c9148caba94
You should set ROOT_URL correctly, otherwise the web may not work correctly.
3 changed files with
39 additions and
1 deletions
@ -150,6 +150,7 @@
<Compile Include= "SignalR\Serializer.cs" />
<Compile Include= "SignalR\SignalrDependencyResolver.cs" />
<Compile Include= "SignalR\NzbDronePersistentConnection.cs" />
<Compile Include= "System\SystemModule.cs" />
<Compile Include= "TinyIoCNancyBootstrapper.cs" />
<Compile Include= "Update\UpdateModule.cs" />
<Compile Include= "Validation\IdValidationRule.cs" />
@ -0,0 +1,37 @@
using Nancy ;
using NzbDrone.Common ;
using NzbDrone.Api.Extensions ;
namespace NzbDrone.Api.System
{
public class SystemModule : NzbDroneApiModule
{
private readonly IEnvironmentProvider _environmentProvider ;
public SystemModule ( IEnvironmentProvider environmentProvider )
: base ( "system" )
{
_environmentProvider = environmentProvider ;
Get [ "/status" ] = x = > GetStatus ( ) ;
}
private Response GetStatus ( )
{
return new
{
Version = _environmentProvider . Version ,
AppData = _environmentProvider . GetAppDataPath ( ) ,
IsAdmin = _environmentProvider . IsAdmin ,
IsUserInteractive = _environmentProvider . IsUserInteractive ,
BuildTime = _environmentProvider . BuildDateTime ,
StartupPath = _environmentProvider . StartUpPath ,
OsVersion = _environmentProvider . GetOsVersion ( ) ,
IsMono = EnvironmentProvider . IsMono ,
IsProduction = EnvironmentProvider . IsProduction ,
IsDebug = EnvironmentProvider . IsDebug ,
IsLinux = EnvironmentProvider . IsLinux
} . AsResponse ( ) ;
}
}
}
@ -41,7 +41,7 @@ namespace NzbDrone.Common
var service = ServiceController . GetServices ( )
. SingleOrDefault ( s = > String . Equals ( s . ServiceName , name , StringComparison . InvariantCultureIgnoreCase ) ) ;
return service ! = null & & service . Status = = ServiceControllerStatus . Running ;
return service ! = null & & ( service . Status = = ServiceControllerStatus . Running | | service . Status = = ServiceControllerStatus . StartPending ) ;
}
public virtual void Install ( string serviceName )