mirror of
https://github.com/Radarr/Radarr.git
synced 2024-09-11 20:12:41 +02:00
parent
bec8312d61
commit
ef9c1bf0a4
@ -44,6 +44,9 @@ public void should_parse_language_english_german(string postTitle)
|
|||||||
}
|
}
|
||||||
|
|
||||||
[TestCase("Movie.Title.1994.Spanish.1080p.XviD-LOL")]
|
[TestCase("Movie.Title.1994.Spanish.1080p.XviD-LOL")]
|
||||||
|
[TestCase("Movie Title (2020)[BDRemux AVC 1080p][E-AC3 DD Plus 5.1 Castellano-Inglés Subs]")]
|
||||||
|
[TestCase("Movie Title (2020) [UHDRemux2160p HDR][DTS-HD MA 5.1 AC3 5.1 Castellano - True-HD 7.1 Atmos Inglés Subs]")]
|
||||||
|
[TestCase("Movie Title (2016) [UHDRemux 2160p SDR] [Castellano DD 5.1 - Inglés DTS-HD MA 5.1 Subs]")]
|
||||||
public void should_parse_language_spanish(string postTitle)
|
public void should_parse_language_spanish(string postTitle)
|
||||||
{
|
{
|
||||||
var result = Parser.Parser.ParseMovieTitle(postTitle, true);
|
var result = Parser.Parser.ParseMovieTitle(postTitle, true);
|
||||||
|
@ -37,7 +37,7 @@ public static List<Language> ParseLanguages(string title)
|
|||||||
languages.Add(Language.French);
|
languages.Add(Language.French);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (lowerTitle.Contains("spanish"))
|
if (lowerTitle.Contains("spanish") || lowerTitle.Contains("castellano"))
|
||||||
{
|
{
|
||||||
languages.Add(Language.Spanish);
|
languages.Add(Language.Spanish);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user