Your ROOT_URL in app.ini is https://git.cloudchain.link/ but you are visiting https://dash.bss.nz/open-source-mirrors/Sonarr/commit/e6175581bd37b2aecc9130c3e29e59df4566e97d?style=unified&whitespace=ignore-change
You should set ROOT_URL correctly, otherwise the web may not work correctly.
2 changed files with
18 additions and
0 deletions
@ -92,5 +92,12 @@ namespace NzbDrone.Core.Test.ParserTests
result . IsPartialSeason . Should ( ) . BeFalse ( ) ;
result . IsMultiSeason . Should ( ) . BeTrue ( ) ;
}
[Test]
public void should_not_parse_season_folders ( )
{
var result = Parser . Parser . ParseTitle ( "Season 3" ) ;
result . Should ( ) . BeNull ( ) ;
}
}
}
@ -341,6 +341,11 @@ namespace NzbDrone.Core.Parser
new Regex ( @"^\d{6}_\d{2}$" ) ,
} ;
private static readonly Regex [ ] SeasonFolderRegexes = new Regex [ ]
{
new Regex ( @"^(Season[ ._-]*\d+|Specials)$" , RegexOptions . Compiled )
} ;
//Regex to detect whether the title was reversed.
private static readonly Regex ReversedTitleRegex = new Regex ( @"(?:^|[-._ ])(p027|p0801|\d{2,3}E\d{2}S)[-._ ]" , RegexOptions . Compiled ) ;
@ -917,6 +922,12 @@ namespace NzbDrone.Core.Parser
return false ;
}
if ( SeasonFolderRegexes . Any ( v = > v . IsMatch ( titleWithoutExtension ) ) )
{
Logger . Debug ( "Rejected Season Folder Release Title: " + title ) ;
return false ;
}
return true ;
}