mirror of
https://github.com/Radarr/Radarr.git
synced 2026-04-18 21:35:51 -04:00
New: Handle multi title release names split by slash
Closes #7917 Co-Authored-By: andrey4korop <24610708+andrey4korop@users.noreply.github.com>
This commit is contained in:
@@ -193,6 +193,13 @@ namespace NzbDrone.Core.Test.ParserTests
|
||||
"Return Earth to Normal 'em High",
|
||||
"World 2"
|
||||
})]
|
||||
[TestCase("Енола Голмс / Enola Holmes (2020) UHD WEB-DL 2160p 4K HDR H.265 Ukr/Eng | Sub Ukr/Eng",
|
||||
new string[]
|
||||
{
|
||||
"Енола Голмс / Enola Holmes",
|
||||
"Енола Голмс",
|
||||
"Enola Holmes"
|
||||
})]
|
||||
public void should_parse_movie_alternative_titles(string postTitle, string[] parsedTitles)
|
||||
{
|
||||
var movieInfo = Parser.Parser.ParseMovieTitle(postTitle, true);
|
||||
|
||||
@@ -100,7 +100,7 @@ namespace NzbDrone.Core.Parser
|
||||
private static readonly Regex ReversedTitleRegex = new Regex(@"(?:^|[-._ ])(p027|p0801)[-._ ]", RegexOptions.Compiled);
|
||||
|
||||
// Regex to split movie titles that contain `AKA`.
|
||||
private static readonly Regex AlternativeTitleRegex = new Regex(@"[ ]+AKA[ ]+", RegexOptions.IgnoreCase | RegexOptions.Compiled);
|
||||
private static readonly Regex AlternativeTitleRegex = new Regex(@"[ ]+(?:AKA|\/)[ ]+", RegexOptions.IgnoreCase | RegexOptions.Compiled);
|
||||
|
||||
// Regex to unbracket alternative titles.
|
||||
private static readonly Regex BracketedAlternativeTitleRegex = new Regex(@"(.*) \([ ]*AKA[ ]+(.*)\)", RegexOptions.IgnoreCase | RegexOptions.Compiled);
|
||||
|
||||
Reference in New Issue
Block a user