From b06730f4efb440f55e97d512c0fc2c378d3bf752 Mon Sep 17 00:00:00 2001 From: Qstick Date: Mon, 30 Jan 2023 20:45:03 -0600 Subject: [PATCH] Fixed: Custom Formats don't work for Release Title spec --- src/NzbDrone.Core/Parser/Parser.cs | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/src/NzbDrone.Core/Parser/Parser.cs b/src/NzbDrone.Core/Parser/Parser.cs index 291b90232..12b06d816 100644 --- a/src/NzbDrone.Core/Parser/Parser.cs +++ b/src/NzbDrone.Core/Parser/Parser.cs @@ -364,7 +364,7 @@ namespace NzbDrone.Core.Parser { try { - var result = ParseAlbumMatchCollection(match); + var result = ParseAlbumMatchCollection(match, releaseTitle); if (result != null) { @@ -459,7 +459,7 @@ namespace NzbDrone.Core.Parser Logger.Trace(regex); try { - var result = ParseAlbumMatchCollection(match); + var result = ParseAlbumMatchCollection(match, releaseTitle); if (result != null) { @@ -695,7 +695,7 @@ namespace NzbDrone.Core.Parser return parseResult.ArtistName; } - private static ParsedAlbumInfo ParseAlbumMatchCollection(MatchCollection matchCollection) + private static ParsedAlbumInfo ParseAlbumMatchCollection(MatchCollection matchCollection, string releaseTitle) { var artistName = matchCollection[0].Groups["artist"].Value.Replace('.', ' ').Replace('_', ' '); var albumTitle = matchCollection[0].Groups["album"].Value.Replace('.', ' ').Replace('_', ' '); @@ -709,7 +709,10 @@ namespace NzbDrone.Core.Parser ParsedAlbumInfo result; - result = new ParsedAlbumInfo(); + result = new ParsedAlbumInfo + { + ReleaseTitle = releaseTitle + }; result.ArtistName = artistName; result.AlbumTitle = albumTitle;