mirror of https://github.com/Radarr/Radarr
Added term "brazilian" to Brazilian Portuguese parsing (#7296)
* Added term "brazilian" to Brazilian Portuguese regex * Removed "brazilian" from Regex and added to lowerTitle.Contains() + Added Test Case for "Brazilian"
This commit is contained in:
parent
14cccd3a23
commit
93b2395228
|
@ -163,6 +163,7 @@ namespace NzbDrone.Core.Test.ParserTests
|
|||
|
||||
[TestCase("Movie.Title.1994.Dublado.1080p.XviD-LOL")]
|
||||
[TestCase("Movie.Title.2.2019.1080p.Bluray.Dublado.WWW.TPF.GRATIS")]
|
||||
[TestCase("Movie.Title.2014.1080p.Bluray.Brazilian.WWW.TPF.GRATIS")]
|
||||
public void should_parse_language_brazilian_portuguese(string postTitle)
|
||||
{
|
||||
var result = Parser.Parser.ParseMovieTitle(postTitle, true);
|
||||
|
|
|
@ -152,6 +152,11 @@ namespace NzbDrone.Core.Parser
|
|||
languages.Add(Language.Portuguese);
|
||||
}
|
||||
|
||||
if (lowerTitle.Contains("brazilian"))
|
||||
{
|
||||
languages.Add(Language.PortugueseBR);
|
||||
}
|
||||
|
||||
if (lowerTitle.Contains("hungarian"))
|
||||
{
|
||||
languages.Add(Language.Hungarian);
|
||||
|
|
Loading…
Reference in New Issue