mirror of
https://github.com/lidarr/Lidarr
synced 2025-03-15 08:19:05 +00:00
Fixed: Matching of custom formats during track files import
(cherry picked from commit 7fedfe7423a525f05008c2c7c15e3cb0c9c38fe5) Closes #3484
This commit is contained in:
parent
0d76fbcf0d
commit
d04bb5333a
1 changed files with 3 additions and 2 deletions
|
@ -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…
Add table
Reference in a new issue