mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-20 21:43:33 -07: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
|
var albumInfo = new ParsedAlbumInfo
|
||||||
{
|
{
|
||||||
ArtistName = localTrack.Artist.Name,
|
ArtistName = localTrack.Artist.Name,
|
||||||
ReleaseTitle = localTrack.SceneName,
|
ReleaseTitle = localTrack.SceneName.IsNotNullOrWhiteSpace() ? localTrack.SceneName : Path.GetFileName(localTrack.Path),
|
||||||
Quality = localTrack.Quality,
|
Quality = localTrack.Quality,
|
||||||
ReleaseGroup = localTrack.ReleaseGroup
|
ReleaseGroup = localTrack.ReleaseGroup
|
||||||
};
|
};
|
||||||
|
@ -114,7 +114,8 @@ namespace NzbDrone.Core.CustomFormats
|
||||||
{
|
{
|
||||||
AlbumInfo = albumInfo,
|
AlbumInfo = albumInfo,
|
||||||
Artist = localTrack.Artist,
|
Artist = localTrack.Artist,
|
||||||
Size = localTrack.Size
|
Size = localTrack.Size,
|
||||||
|
Filename = Path.GetFileName(localTrack.Path)
|
||||||
};
|
};
|
||||||
|
|
||||||
return ParseCustomFormat(input);
|
return ParseCustomFormat(input);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue