New: Detect 'castellano' as Spanish Language

Fixes #6152
This commit is contained in:
bakerboy448 2021-04-06 11:36:15 -05:00 committed by Robin Dadswell
parent bec8312d61
commit ef9c1bf0a4
2 changed files with 4 additions and 1 deletions

View File

@ -44,6 +44,9 @@ namespace NzbDrone.Core.Test.ParserTests
}
[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)
{
var result = Parser.Parser.ParseMovieTitle(postTitle, true);

View File

@ -37,7 +37,7 @@ namespace NzbDrone.Core.Parser
languages.Add(Language.French);
}
if (lowerTitle.Contains("spanish"))
if (lowerTitle.Contains("spanish") || lowerTitle.Contains("castellano"))
{
languages.Add(Language.Spanish);
}