Your ROOT_URL in app.ini is https://git.cloudchain.link/ but you are visiting https://dash.bss.nz/open-source-mirrors/Radarr/commit/f2886d89de2a7e7d4d5a6af863af91b86d72d9dc?style=unified&whitespace=ignore-change
You should set ROOT_URL correctly, otherwise the web may not work correctly.
5 changed files with
35 additions and
24 deletions
@ -22,12 +22,10 @@ namespace NzbDrone.Common
}
containerBuilder . RegisterAssemblyTypes ( apiAssembly )
. AsImplementedInterfaces ( )
. SingleInstance ( ) ;
. AsImplementedInterfaces ( ) ;
containerBuilder . RegisterAssemblyTypes ( apiAssembly )
. AsSelf ( )
. SingleInstance ( ) ;
. AsSelf ( ) ;
}
}
}
@ -37,15 +37,15 @@ namespace NzbDrone.Core
container . RegisterAssemblyTypes ( assembly )
. Where ( t = > t . IsSubclassOf ( typeof ( IndexerBase ) ) )
. As < IndexerBase > ( ) .SingleInstance ( ) ;
. As < IndexerBase > ( ) ;
container . RegisterAssemblyTypes ( assembly )
. Where ( t = > t . IsSubclassOf ( typeof ( IndexerSearchBase ) ) )
. As < IndexerSearchBase > ( ) .SingleInstance ( ) ;
. As < IndexerSearchBase > ( ) ;
container . RegisterAssemblyTypes ( assembly )
. Where ( t = > t . IsSubclassOf ( typeof ( ExternalNotificationBase ) ) )
. As < ExternalNotificationBase > ( ) .SingleInstance ( ) ;
. As < ExternalNotificationBase > ( ) ;
}
private static void InitDatabase ( this ContainerBuilder container )
@ -56,7 +56,7 @@ namespace NzbDrone.Core
var appDataPath = environmentProvider . GetAppDataPath ( ) ;
if ( ! Directory . Exists ( appDataPath ) ) Directory . CreateDirectory ( appDataPath ) ;
container . Register ( c = > c . Resolve < IDbFactory > ( ) . Create ( environmentProvider . GetNzbDroneDatabase ( ) ) ) . As < IDatabase > ( ) .SingleInstance ( ) ;
container . Register ( c = > c . Resolve < IDbFactory > ( ) . Create ( environmentProvider . GetNzbDroneDatabase ( ) ) ) . As < IDatabase > ( ) ;
container . RegisterGeneric ( typeof ( BasicRepository < > ) ) . As ( typeof ( IBasicRepository < > ) ) ;
}
@ -1,5 +1,4 @@
using System ;
using System.Data ;
using System.Data.SQLite ;
using Marr.Data ;
using NzbDrone.Core.Datastore.Migration.Framework ;
@ -16,9 +15,13 @@ namespace NzbDrone.Core.Datastore
{
private readonly IMigrationController _migrationController ;
public DbFactory ( IMigrationController migrationController )
static DbFactory ( )
{
TableMapping . Map ( ) ;
}
public DbFactory ( IMigrationController migrationController )
{
_migrationController = migrationController ;
}
@ -1,4 +1,6 @@
using System.Reflection ;
using System.Collections.Concurrent ;
using System.Collections.Generic ;
using System.Reflection ;
using FluentMigrator.Runner ;
using FluentMigrator.Runner.Initialization ;
using FluentMigrator.Runner.Processors.Sqlite ;
@ -14,6 +16,8 @@ namespace NzbDrone.Core.Datastore.Migration.Framework
{
private readonly IAnnouncer _announcer ;
private static readonly HashSet < string > MigrationCache = new HashSet < string > ( ) ;
public MigrationController ( IAnnouncer announcer )
{
_announcer = announcer ;
@ -21,6 +25,10 @@ namespace NzbDrone.Core.Datastore.Migration.Framework
public void MigrateToLatest ( string connectionString , MigrationType migrationType )
{
lock ( MigrationCache )
{
if ( MigrationCache . Contains ( connectionString . ToLower ( ) ) ) return ;
var assembly = Assembly . GetExecutingAssembly ( ) ;
var migrationContext = new RunnerContext ( _announcer )
@ -34,6 +42,9 @@ namespace NzbDrone.Core.Datastore.Migration.Framework
var processor = factory . Create ( connectionString , _announcer , options ) ;
var runner = new MigrationRunner ( assembly , migrationContext , processor ) ;
runner . MigrateUp ( true ) ;
MigrationCache . Add ( connectionString . ToLower ( ) ) ;
}
}
}
}
@ -1,6 +1,5 @@
using System ;
using System.IO ;
using System.Linq ;
using Autofac ;
using NLog ;
using NzbDrone.Common ;