mirror of
https://github.com/Radarr/Radarr
synced 2025-01-01 12:54:21 +00:00
Added new TestCase for Parser and fixed spelling error
This commit is contained in:
parent
18773bc665
commit
ddc6ccbf15
2 changed files with 2 additions and 1 deletions
|
@ -50,6 +50,7 @@ public class LanguageParserFixture : CoreTest
|
|||
[TestCase("Castle.2009.S01E14.HDTV.XviD.ENG.HUN-LOL", Language.Hungarian)]
|
||||
[TestCase("Castle.2009.S01E14.HDTV.XviD.HUN-LOL", Language.Hungarian)]
|
||||
[TestCase("The Danish Girl 2015", Language.English)]
|
||||
[TestCase("Passengers.2016.German.DL.AC3.Dubbed.1080p.WebHD.h264.iNTERNAL-PsO", Language.German)]
|
||||
public void should_parse_language(string postTitle, Language language)
|
||||
{
|
||||
var result = Parser.Parser.ParseMovieTitle(postTitle);
|
||||
|
|
|
@ -110,7 +110,7 @@ public static Language ParseSubtitleLanguage(string fileName)
|
|||
{
|
||||
try
|
||||
{
|
||||
Logger.Debug("Parsing language from subtitlte file: {0}", fileName);
|
||||
Logger.Debug("Parsing language from subtitle file: {0}", fileName);
|
||||
|
||||
var simpleFilename = Path.GetFileNameWithoutExtension(fileName);
|
||||
var languageMatch = SubtitleLanguageRegex.Match(simpleFilename);
|
||||
|
|
Loading…
Reference in a new issue