1
0
mirror of https://github.com/Radarr/Radarr.git synced 2024-11-19 17:32:38 +01:00

Fixed: Don't treat SubFrench as French audio language

(cherry picked from commit 5ad3d2efcce7d983bd783b551f32666529086901)

Closes #10209
This commit is contained in:
Mark McDowall 2024-07-24 17:07:30 -07:00 committed by Bogdan
parent df35e78e1f
commit ae89ae175f
2 changed files with 2 additions and 6 deletions

View File

@ -21,6 +21,7 @@ public void should_parse_language_english(string postTitle)
[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);

View File

@ -21,7 +21,7 @@ public static class LanguageParser
(?<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 @@ public static List<Language> ParseLanguages(string title)
languages.Add(Language.English);
}
if (lowerTitle.Contains("french"))
{
languages.Add(Language.French);
}
if (lowerTitle.Contains("spanish"))
{
languages.Add(Language.Spanish);