Your ROOT_URL in app.ini is https://git.cloudchain.link/ but you are visiting https://dash.bss.nz/open-source-mirrors/Prowlarr/commit/68352e0340c4428028db088d37d8f896247bd713
You should set ROOT_URL correctly, otherwise the web may not work correctly.
2 changed files with
21 additions and
0 deletions
@ -14,6 +14,8 @@ namespace NzbDrone.Core.Test.Configuration
public void SetUp ( )
{
Mocker . SetConstant < IConfigRepository > ( Mocker . Resolve < ConfigRepository > ( ) ) ;
Db . All < Config > ( ) . ForEach ( Db . Delete ) ;
}
[Test]
@ -16,11 +16,30 @@ namespace NzbDrone.Core.Datastore.Migration
{
protected override void MainDbUpgrade ( )
{
Execute . WithConnection ( EnableCompletedDownloadHandlingForNewUsers ) ;
Execute . WithConnection ( ConvertFolderSettings ) ;
Execute . WithConnection ( AssociateImportedHistoryItems ) ;
}
private void EnableCompletedDownloadHandlingForNewUsers ( IDbConnection conn , IDbTransaction tran )
{
using ( IDbCommand cmd = conn . CreateCommand ( ) )
{
cmd . Transaction = tran ;
cmd . CommandText = @"SELECT Value FROM Config WHERE Key = 'downloadedepisodesfolder'" ;
var result = cmd . ExecuteScalar ( ) ;
if ( result = = null )
{
cmd . CommandText = @"INSERT INTO Config (Key, Value) VALUES ('enablecompleteddownloadhandling', 'True')" ;
cmd . ExecuteNonQuery ( ) ;
}
}
}
private void ConvertFolderSettings ( IDbConnection conn , IDbTransaction tran )
{
using ( IDbCommand downloadClientsCmd = conn . CreateCommand ( ) )