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:
Rafael Wille 2022-05-28 20:20:38 -03:00 committed by GitHub
parent 14cccd3a23
commit 93b2395228
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 0 deletions

View File

@ -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);

View File

@ -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);