Your ROOT_URL in app.ini is https://git.cloudchain.link/ but you are visiting https://dash.bss.nz/open-source-mirrors/Radarr/commit/8b3fd95d559505d06d7dc604d01c8fadf9c33d61
You should set ROOT_URL correctly, otherwise the web may not work correctly.
3 changed files with
13 additions and
1 deletions
@ -66,6 +66,7 @@ namespace NzbDrone.Core.Test.ParserTests
[TestCase("[Commie] Nobunaga the Fool - 23 [ 5396 CA24 ] . mkv ", " Nobunaga the Fool ", 23, 0, 0)]
[TestCase("[FFF] Seikoku no Dragonar - 01 [ 1F B538B5 ] . mkv ", " Seikoku no Dragonar ", 1, 0, 0)]
[TestCase("[Hatsuyuki] Fate_Zero - 01 [ 1280 x720 ] [ 122E6 EF8 ] ", " Fate / Zero ", 1, 0, 0)]
[TestCase("[CBM] _Monster_ - _11_ - _511_Kinderheim_ [ 6 C70C4E4 ] . mkv ", " Monster ", 11, 0, 0)]
public void should_parse_absolute_numbers ( string postTitle , string title , int absoluteEpisodeNumber , int seasonNumber , int episodeNumber )
{
var result = Parser . Parser . ParseTitle ( postTitle ) ;
@ -91,5 +92,11 @@ namespace NzbDrone.Core.Test.ParserTests
result . FullSeason . Should ( ) . BeFalse ( ) ;
result . Special . Should ( ) . BeTrue ( ) ;
}
[TestCase("[ANBU-AonE] _Naruto_26 - 27_ [ F224EF26 ] . avi ", " Naruto ", new[] { 26, 27 })]
public void should_parse_multi_episode_absolute_numbers ( string postTitle , string title , int [ ] absoluteEpisodeNumbers )
{
}
}
}
@ -86,6 +86,7 @@ namespace NzbDrone.Core.Test.ParserTests
[TestCase("S2009E09 [SDTV] . avi ", " ", 2009, 9)]
[TestCase("Shark Week S2009E09 [SDTV] . avi ", " Shark Week ", 2009, 9)]
[TestCase("St_Elsewhere_209_Aids_And_Comfort", "St Elsewhere", 2, 9)]
[TestCase("[Impatience] Locodol - 0x01 [ 720 p ] [ 34073169 ] . mkv ", " Locodol ", 0, 1)]
//[TestCase("", "", 0, 0)]
public void should_parse_single_episode ( string postTitle , string title , int seasonNumber , int episodeNumber )
{
@ -30,8 +30,12 @@ namespace NzbDrone.Core.Parser
new Regex ( @"^(?:\[(?<subgroup>.+?)\](?:_|-|\s|\.))(?<title>.+?)(?:\W|_)+(?:S?(?<season>(?<!\d+)\d{1,2}(?!\d+))(?:(?:\-|[ex]|\W[ex]){1,2}(?<episode>\d{2}(?!\d+)))+)(?:\s|\.)(?:(?<absoluteepisode>\d{2,3})(?:_|-|\s|\.|$)+)+.*?(?<hash>\[.{8}\])?(?:$|\.)" ,
RegexOptions . IgnoreCase | RegexOptions . Compiled ) ,
//Anime - [SubGroup] Title Season+Episode
new Regex ( @"^(?:\[(?<subgroup>.+?)\](?:_|-|\s|\.))(?<title>.+?)(?:\W|_)+(?:S?(?<season>(?<!\d+)\d{1,2}(?!\d+))(?:(?:\-|[ex]|\W[ex]){1,2}(?<episode>\d{2}(?!\d+)))+)(?:\s|\.).*?(?<hash>\[.{8}\])?(?:$|\.)" ,
RegexOptions . IgnoreCase | RegexOptions . Compiled ) ,
//Anime - [SubGroup] Title Absolute Episode Number
new Regex ( @"^\[(?<subgroup>.+?)\][-_. ]?(?<title>.+?)(?:[-_. ]+(?<absoluteepisode>\d{2,}))+(?:[-_. ]+(?<special>special|ova|ovd))?.*?(?<hash>\[[a-z0-9]{8}\])?(?:$|\.mkv)" ,
new Regex ( @"^\[(?<subgroup>.+?)\][-_. ]?(?<title>.+?) [-_. ]+(?:[-_. ]? (?<absoluteepisode>\d{2,}))+(?:[-_. ]+(?<special>special|ova|ovd))?.*?(?<hash>\[[a-z0-9]{8}\])?(?:$|\.mkv)",
RegexOptions . IgnoreCase | RegexOptions . Compiled ) ,
//Multi-Part episodes without a title (S01E05.S01E06)