1
0
mirror of https://github.com/Radarr/Radarr.git synced 2026-04-21 22:05:43 -04:00

New: Detect 'FRA' and 'FRE' as French Language

Fixes #6136
This commit is contained in:
bakerboy448
2021-04-06 11:49:40 -05:00
committed by Robin Dadswell
parent ef9c1bf0a4
commit 4ce98d689d
2 changed files with 12 additions and 1 deletions
@@ -34,6 +34,17 @@ namespace NzbDrone.Core.Test.ParserTests
result.Languages.Should().BeEquivalentTo(Language.French);
}
[TestCase("Movie 1990 1080p Eng Fra [mkvonly]")]
[TestCase("Movie Directory 25 Anniversary 1990 Eng Fre Multi Subs 720p [H264 mp4]")]
[TestCase("Foreign-Words-Here-Movie-(1990)-[DVDRip]-H264-Fra-Ac3-2-0-Eng-5-1")]
public void should_parse_language_french_english(string postTitle)
{
var result = Parser.Parser.ParseMovieTitle(postTitle, true);
result.Languages.Should().Contain(Language.French);
result.Languages.Should().Contain(Language.English);
}
[TestCase("Movie.Title.1982.Ger.Eng.AC3.DL.BDRip.x264-iNCEPTiON")]
public void should_parse_language_english_german(string postTitle)
{