@ -131,6 +131,14 @@ namespace NzbDrone.Core.Test.ParserTests
result.Languages.Should().BeEquivalentTo(Language.Hindi);
}
[TestCase("Pulp.Fiction.1994.Thai.1080p.XviD-LOL")]
public void should_parse_language_thai(string postTitle)
{
var result = Parser.Parser.ParseMovieTitle(postTitle, true);
result.Languages.Should().BeEquivalentTo(Language.Thai);
[TestCase("Pulp.Fiction.1994.Polish.1080p.XviD-LOL")]
public void should_parse_language_polish(string postTitle)
@ -98,6 +98,7 @@ namespace NzbDrone.Core.Languages
public static Language Czech => new Language(25, "Czech");
public static Language Hindi => new Language(26, "Hindi");
public static Language Romanian => new Language(27, "Romanian");
public static Language Thai => new Language(28, "Thai");
public static Language Any => new Language(-1, "Any");
public static Language Original => new Language(-2, "Original");
@ -135,6 +136,7 @@ namespace NzbDrone.Core.Languages
Czech,
Romanian,
Hindi,
Thai,
Any,
Original
};
@ -33,6 +33,7 @@ namespace NzbDrone.Core.Parser
new IsoLanguage("he", "", "heb", "Hebrew", Language.Hebrew),
new IsoLanguage("cs", "", "ces", "Czech", Language.Czech),
new IsoLanguage("hi", "", "hin", "Hindi", Language.Hindi),
new IsoLanguage("th", "", "tha", "Thai", Language.Thai),
new IsoLanguage("ro", "", "ron", "Romanian", Language.Romanian)
@ -87,6 +87,11 @@ namespace NzbDrone.Core.Parser
languages.Add(Language.Hindi);
if (lowerTitle.Contains("thai"))
languages.Add(Language.Thai);
if (lowerTitle.Contains("polish"))
languages.Add(Language.Polish);