1
0
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:
Mark McDowall
2023-10-29 16:27:30 -07:00
parent d484553b31
commit 165e3dbae8
4 changed files with 21 additions and 3 deletions
@@ -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);
}
}
}