Fixed: Don't treat SubFrench as French audio language

(cherry picked from commit 5ad3d2efcce7d983bd783b551f32666529086901)

Closes #10209
pull/9499/merge
Mark McDowall 4 months ago committed by Bogdan
parent df35e78e1f
commit ae89ae175f

@ -21,6 +21,7 @@ namespace NzbDrone.Core.Test.ParserTests
[TestCase("The Danish Movie 2015")]
[TestCase("Movie.Title.2018.2160p.WEBRip.x265.10bit.HDR.DD5.1-GASMASK")]
[TestCase("Movie.Title.2010.720p.BluRay.x264.-[YTS.LT]")]
[TestCase("Movie.Title.2010.SUBFRENCH.1080p.WEB.x264-GROUP")]
public void should_parse_language_unknown(string postTitle)
{
var result = Parser.Parser.ParseMovieTitle(postTitle, true);

@ -21,7 +21,7 @@ namespace NzbDrone.Core.Parser
(?<romanian>rodubbed)|
(?<brazilian>dublado)|
(?<greek>greek)|
(?<french>\b(?:FR|VO|VF|VFF|VFQ|VFI|VF2|TRUEFRENCH|FRE|FRA)\b)|
(?<french>\b(?:FR|VO|VF|VFF|VFQ|VFI|VF2|TRUEFRENCH|FRENCH|FRE|FRA)\b)|
(?<russian>\b(?:rus|ru)\b)|
(?<english>\beng\b)|
(?<hungarian>\b(?:HUNDUB|HUN)\b)|
@ -57,11 +57,6 @@ namespace NzbDrone.Core.Parser
languages.Add(Language.English);
}
if (lowerTitle.Contains("french"))
{
languages.Add(Language.French);
}
if (lowerTitle.Contains("spanish"))
{
languages.Add(Language.Spanish);

Loading…
Cancel
Save