Your ROOT_URL in app.ini is https://git.cloudchain.link/ but you are visiting https://dash.bss.nz/open-source-mirrors/Sonarr/commit/3f11fcf2e1c7ae4a26e78a90e6d9a6dfac7e438e?style=split&whitespace=ignore-all
You should set ROOT_URL correctly, otherwise the web may not work correctly.
2 changed files with
14 additions and
1 deletions
@ -1,3 +1,4 @@
using System ;
using System.Collections.Generic ;
using System.Collections.Generic ;
using System.IO ;
using System.IO ;
using System.Linq ;
using System.Linq ;
@ -615,5 +616,17 @@ namespace NzbDrone.Core.Test.OrganizerTests
Subject . BuildFileName ( new List < Episode > { _episode1 } , _series , _episodeFile )
Subject . BuildFileName ( new List < Episode > { _episode1 } , _series , _episodeFile )
. Should ( ) . Be ( "Venture.Bros.15x06" ) ;
. Should ( ) . Be ( "Venture.Bros.15x06" ) ;
}
}
[Test]
public void should_use_empty_string_instead_of_null_when_scene_name_is_not_available ( )
{
_namingConfig . RenameEpisodes = true ;
_namingConfig . StandardEpisodeFormat = "{Original Title}" ;
_episodeFile . SceneName = null ;
Subject . BuildFileName ( new List < Episode > { _episode1 } , _series , _episodeFile )
. Should ( ) . Be ( String . Empty ) ;
}
}
}
}
}
@ -398,7 +398,7 @@ namespace NzbDrone.Core.Organizer
private void AddEpisodeFileTokens ( Dictionary < String , Func < TokenMatch , String > > tokenHandlers , Series series , EpisodeFile episodeFile )
private void AddEpisodeFileTokens ( Dictionary < String , Func < TokenMatch , String > > tokenHandlers , Series series , EpisodeFile episodeFile )
{
{
tokenHandlers [ "{Original Title}" ] = m = > episodeFile . SceneName ;
tokenHandlers [ "{Original Title}" ] = m = > episodeFile . SceneName ? ? String . Empty ;
tokenHandlers [ "{Release Group}" ] = m = > episodeFile . ReleaseGroup ? ? "DRONE" ;
tokenHandlers [ "{Release Group}" ] = m = > episodeFile . ReleaseGroup ? ? "DRONE" ;
tokenHandlers [ "{Quality Title}" ] = m = > GetQualityTitle ( series , episodeFile . Quality ) ;
tokenHandlers [ "{Quality Title}" ] = m = > GetQualityTitle ( series , episodeFile . Quality ) ;
}
}