Your ROOT_URL in app.ini is https://git.cloudchain.link/ but you are visiting https://dash.bss.nz/open-source-mirrors/Radarr/commit/e2cc4ef4ea195fbe6f3765b591b85b4ecf2e8b65
You should set ROOT_URL correctly, otherwise the web may not work correctly.
2 changed files with
17 additions and
0 deletions
@ -56,5 +56,20 @@ namespace NzbDrone.Core.Test.ProviderTests.SearchTests
Mocker . Resolve < TestSearch > ( ) . GetSearchTitle ( _series , 5 )
. Should ( ) . Be ( "Franklin and Bash" ) ;
}
[TestCase("Betty White's Off Their Rockers", "Betty Whites Off Their Rockers")]
[TestCase("Star Wars: The Clone Wars", "Star Wars The Clone Wars")]
[TestCase("Hawaii Five-0", "Hawaii Five-0")]
public void should_replace_some_special_characters ( string input , string expected )
{
_series . Title = input ;
Mocker . GetMock < SceneMappingProvider > ( )
. Setup ( s = > s . GetSceneName ( _series . SeriesId ) )
. Returns ( "" ) ;
Mocker . Resolve < TestSearch > ( ) . GetSearchTitle ( _series , 5 )
. Should ( ) . Be ( expected ) ;
}
}
}
@ -2,6 +2,7 @@
using System.Collections.Generic ;
using System.Linq ;
using System.Text ;
using System.Text.RegularExpressions ;
using NLog ;
using NzbDrone.Core.Model ;
using NzbDrone.Core.Model.Notification ;
@ -174,6 +175,7 @@ namespace NzbDrone.Core.Providers.Search
{
title = series . Title ;
title = title . Replace ( "&" , "and" ) ;
title = Regex . Replace ( title , @"[^\w\d\s\-]" , "" ) ;
}
return title ;