diff --git a/allstarr/Services/Deezer/DeezerDownloadService.cs b/allstarr/Services/Deezer/DeezerDownloadService.cs index bf0240e..4d21917 100644 --- a/allstarr/Services/Deezer/DeezerDownloadService.cs +++ b/allstarr/Services/Deezer/DeezerDownloadService.cs @@ -111,7 +111,10 @@ public class DeezerDownloadService : BaseDownloadService // Build organized folder structure: Artist/Album/Track using AlbumArtist (fallback to Artist for singles) var artistForPath = song.AlbumArtist ?? song.Artist; - var basePath = SubsonicSettings.StorageMode == StorageMode.Cache ? CachePath : DownloadPath; + // Cache mode uses cache/Music folder (cleaned up after 24h), Permanent mode uses downloads folder + var basePath = SubsonicSettings.StorageMode == StorageMode.Cache + ? Path.Combine("cache", "Music") + : "downloads"; var outputPath = PathHelper.BuildTrackPath(basePath, artistForPath, song.Album, song.Title, song.Track, extension); // Create directories if they don't exist diff --git a/allstarr/Services/Qobuz/QobuzDownloadService.cs b/allstarr/Services/Qobuz/QobuzDownloadService.cs index 5da212f..866a829 100644 --- a/allstarr/Services/Qobuz/QobuzDownloadService.cs +++ b/allstarr/Services/Qobuz/QobuzDownloadService.cs @@ -110,7 +110,10 @@ public class QobuzDownloadService : BaseDownloadService // Build organized folder structure using AlbumArtist (fallback to Artist for singles) var artistForPath = song.AlbumArtist ?? song.Artist; - var basePath = SubsonicSettings.StorageMode == StorageMode.Cache ? CachePath : DownloadPath; + // Cache mode uses cache/Music folder (cleaned up after 24h), Permanent mode uses downloads folder + var basePath = SubsonicSettings.StorageMode == StorageMode.Cache + ? Path.Combine("cache", "Music") + : "downloads"; var outputPath = PathHelper.BuildTrackPath(basePath, artistForPath, song.Album, song.Title, song.Track, extension); var albumFolder = Path.GetDirectoryName(outputPath)!; diff --git a/allstarr/Services/SquidWTF/SquidWTFDownloadService.cs b/allstarr/Services/SquidWTF/SquidWTFDownloadService.cs index 19afe11..8184374 100644 --- a/allstarr/Services/SquidWTF/SquidWTFDownloadService.cs +++ b/allstarr/Services/SquidWTF/SquidWTFDownloadService.cs @@ -130,7 +130,10 @@ public class SquidWTFDownloadService : BaseDownloadService // Build organized folder structure: Artist/Album/Track using AlbumArtist (fallback to Artist for singles) var artistForPath = song.AlbumArtist ?? song.Artist; - var basePath = SubsonicSettings.StorageMode == StorageMode.Cache ? CachePath : DownloadPath; + // Cache mode uses cache/Music folder (cleaned up after 24h), Permanent mode uses downloads folder + var basePath = SubsonicSettings.StorageMode == StorageMode.Cache + ? Path.Combine("cache", "Music") + : "downloads"; var outputPath = PathHelper.BuildTrackPath(basePath, artistForPath, song.Album, song.Title, song.Track, extension); // Create directories if they don't exist