feat: add cache-only storage mode for streaming without library persistence

This commit is contained in:
V1ck3s
2026-01-10 00:46:18 +01:00
committed by Vickes
parent 318ce96cbc
commit dbb1964f46
8 changed files with 301 additions and 28 deletions

View File

@@ -109,7 +109,8 @@ 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 outputPath = PathHelper.BuildTrackPath(DownloadPath, artistForPath, song.Album, song.Title, song.Track, extension);
var basePath = SubsonicSettings.StorageMode == StorageMode.Cache ? CachePath : DownloadPath;
var outputPath = PathHelper.BuildTrackPath(basePath, artistForPath, song.Album, song.Title, song.Track, extension);
// Create directories if they don't exist
var albumFolder = Path.GetDirectoryName(outputPath)!;