mirror of
https://github.com/Lidarr/Lidarr.git
synced 2026-02-10 07:48:50 -06:00
Fixed: Matching of custom formats during track files import
(cherry picked from commit 7fedfe7423a525f05008c2c7c15e3cb0c9c38fe5) Closes #3484
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user