mirror of
https://github.com/Lidarr/Lidarr
synced 2026-03-03 11:06:50 +01:00
Fixed: Custom Formats don't work for Release Title spec
This commit is contained in:
parent
5f1394acfa
commit
b06730f4ef
1 changed files with 7 additions and 4 deletions
|
|
@ -364,7 +364,7 @@ public static ParsedAlbumInfo ParseAlbumTitleWithSearchCriteria(string title, Ar
|
|||
{
|
||||
try
|
||||
{
|
||||
var result = ParseAlbumMatchCollection(match);
|
||||
var result = ParseAlbumMatchCollection(match, releaseTitle);
|
||||
|
||||
if (result != null)
|
||||
{
|
||||
|
|
@ -459,7 +459,7 @@ public static ParsedAlbumInfo ParseAlbumTitle(string title)
|
|||
Logger.Trace(regex);
|
||||
try
|
||||
{
|
||||
var result = ParseAlbumMatchCollection(match);
|
||||
var result = ParseAlbumMatchCollection(match, releaseTitle);
|
||||
|
||||
if (result != null)
|
||||
{
|
||||
|
|
@ -695,7 +695,7 @@ public static string ParseArtistName(string title)
|
|||
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 @@ private static ParsedAlbumInfo ParseAlbumMatchCollection(MatchCollection matchCo
|
|||
|
||||
ParsedAlbumInfo result;
|
||||
|
||||
result = new ParsedAlbumInfo();
|
||||
result = new ParsedAlbumInfo
|
||||
{
|
||||
ReleaseTitle = releaseTitle
|
||||
};
|
||||
|
||||
result.ArtistName = artistName;
|
||||
result.AlbumTitle = albumTitle;
|
||||
|
|
|
|||
Loading…
Reference in a new issue