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:
parent
df35e78e1f
commit
ae89ae175f
@ -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);
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user