fix: use AlbumArtist for download folder organization

This commit is contained in:
V1ck3s
2026-01-07 22:43:17 +01:00
parent 853340b0f5
commit 9ec1bb77b5

View File

@@ -513,8 +513,9 @@ public class DeezerDownloadService : IDownloadService
_ => ".mp3" _ => ".mp3"
}; };
// Build organized folder structure: Artist/Album/Track // Build organized folder structure: Artist/Album/Track using AlbumArtist (fallback to Artist for singles)
var outputPath = PathHelper.BuildTrackPath(_downloadPath, song.Artist, song.Album, song.Title, song.Track, extension); var artistForPath = song.AlbumArtist ?? song.Artist;
var outputPath = PathHelper.BuildTrackPath(_downloadPath, artistForPath, song.Album, song.Title, song.Track, extension);
// Create directories if they don't exist // Create directories if they don't exist
var albumFolder = Path.GetDirectoryName(outputPath)!; var albumFolder = Path.GetDirectoryName(outputPath)!;