New: Parse pt-BR releases as Brazilian Portuguese (#10554)

* New: Match releases with pt-BR (BPC-47) with Portuguese Brazilian
pull/10541/head
costaht 3 months ago committed by GitHub
parent 3287e7cdec
commit fb7656be56
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -191,6 +191,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")]
[TestCase("Movie.Title.2014.1080p.AMZN.WEB-DL.DDP2.0.H.264.pt-BR.ENG-LCD")]
public void should_parse_language_brazilian_portuguese(string postTitle)
{
var result = Parser.Parser.ParseMovieTitle(postTitle, true);

@ -20,7 +20,7 @@ namespace NzbDrone.Core.Parser
(?<flemish>flemish)|
(?<bulgarian>bgaudio)|
(?<romanian>rodubbed)|
(?<brazilian>dublado)|
(?<brazilian>\b(dublado|pt-BR)\b)|
(?<greek>greek)|
(?<french>\b(?:FR|VO|VF|VFF|VFQ|VFI|VF2|TRUEFRENCH|FRENCH|FRE|FRA)\b)|
(?<russian>\b(?:rus|ru)\b)|

Loading…
Cancel
Save