mirror of
https://github.com/Sonarr/Sonarr.git
synced 2026-04-22 22:16:13 -04:00
Fixed: Don't parse language from series title for v2 releases
Closes #7182
This commit is contained in:
committed by
Mark McDowall
parent
f20ac9dc34
commit
55363f4e3d
@@ -1,5 +1,6 @@
|
||||
using FluentAssertions;
|
||||
using NUnit.Framework;
|
||||
using NzbDrone.Core.Languages;
|
||||
using NzbDrone.Core.Parser;
|
||||
using NzbDrone.Core.Qualities;
|
||||
using NzbDrone.Core.Test.Framework;
|
||||
@@ -100,5 +101,14 @@ namespace NzbDrone.Core.Test.ParserTests
|
||||
var seriesTitleInfo = Parser.Parser.ParseTitle(postTitle).SeriesTitleInfo;
|
||||
seriesTitleInfo.AllTitles.Should().BeEquivalentTo(titles);
|
||||
}
|
||||
|
||||
[TestCase("[Reza] Series in Russian - S01E08 [WEBRip 1080p HEVC AAC] (Dual Audio) (Tokidoki Bosotto Russiago de Dereru Tonari no Alya-san)", "Unknown")]
|
||||
public void should_parse_language_after_parsing_title(string postTitle, string expectedLanguage)
|
||||
{
|
||||
var result = Parser.Parser.ParseTitle(postTitle);
|
||||
|
||||
result.Languages.Count.Should().Be(1);
|
||||
result.Languages.Should().Contain((Language)expectedLanguage);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user