mirror of
https://github.com/Sonarr/Sonarr.git
synced 2026-04-23 22:25:56 -04:00
New: Parsing for titles with multiple translated titles separated by '/'
Closes #6137
This commit is contained in:
@@ -92,5 +92,12 @@ namespace NzbDrone.Core.Test.ParserTests
|
||||
var result = Parser.Parser.ParseTitle(path);
|
||||
result.ReleaseTitle.Should().Be(releaseTitle);
|
||||
}
|
||||
|
||||
[TestCase("Босх: Спадок (S2E1) / Series: Legacy (S2E1) (2023) WEB-DL 1080p Ukr/Eng | sub Eng", "Босх: Спадок", "Series: Legacy")]
|
||||
public void should_parse_multiple_series_titles(string postTitle, params string[] titles)
|
||||
{
|
||||
var seriesTitleInfo = Parser.Parser.ParseTitle(postTitle).SeriesTitleInfo;
|
||||
seriesTitleInfo.AllTitles.Should().BeEquivalentTo(titles);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user