Fixed: Matching of custom formats during track files import

(cherry picked from commit 7fedfe7423a525f05008c2c7c15e3cb0c9c38fe5)

Closes #3484
pull/4665/head
bpoxy 2 years ago committed by Bogdan
parent 0d76fbcf0d
commit d04bb5333a

@ -105,7 +105,7 @@ namespace NzbDrone.Core.CustomFormats
var albumInfo = new ParsedAlbumInfo
{
ArtistName = localTrack.Artist.Name,
ReleaseTitle = localTrack.SceneName,
ReleaseTitle = localTrack.SceneName.IsNotNullOrWhiteSpace() ? localTrack.SceneName : Path.GetFileName(localTrack.Path),
Quality = localTrack.Quality,
ReleaseGroup = localTrack.ReleaseGroup
};
@ -114,7 +114,8 @@ namespace NzbDrone.Core.CustomFormats
{
AlbumInfo = albumInfo,
Artist = localTrack.Artist,
Size = localTrack.Size
Size = localTrack.Size,
Filename = Path.GetFileName(localTrack.Path)
};
return ParseCustomFormat(input);

Loading…
Cancel
Save