Skip to content

Commit

Permalink
Fixed: Matching of custom formats during track files import
Browse files Browse the repository at this point in the history
(cherry picked from commit 7fedfe7423a525f05008c2c7c15e3cb0c9c38fe5)

Closes #3484
  • Loading branch information
bpoxy authored and mynameisbogdan committed Mar 8, 2024
1 parent 0d76fbc commit d04bb53
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ public List<CustomFormat> ParseCustomFormat(LocalTrack localTrack)
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
};
Expand All @@ -114,7 +114,8 @@ public List<CustomFormat> ParseCustomFormat(LocalTrack localTrack)
{
AlbumInfo = albumInfo,
Artist = localTrack.Artist,
Size = localTrack.Size
Size = localTrack.Size,
Filename = Path.GetFileName(localTrack.Path)
};

return ParseCustomFormat(input);
Expand Down

0 comments on commit d04bb53

Please sign in to comment.