feat: add download mode option (Track/Album) for Deezer downloads

Closes #10
This commit is contained in:
V1ck3s
2026-01-06 22:50:30 +01:00
committed by Vickes
parent 3fd98ea3de
commit 5d03f86872
7 changed files with 191 additions and 2 deletions

View File

@@ -1,5 +1,22 @@
namespace octo_fiesta.Models;
/// <summary>
/// Download mode for tracks
/// </summary>
public enum DownloadMode
{
/// <summary>
/// Download only the requested track (default behavior)
/// </summary>
Track,
/// <summary>
/// When a track is played, download the entire album in background
/// The requested track is downloaded first, then remaining tracks are queued
/// </summary>
Album
}
/// <summary>
/// Explicit content filter mode for Deezer tracks
/// </summary>
@@ -33,4 +50,11 @@ public class SubsonicSettings
/// Values: "All", "ExplicitOnly", "CleanOnly"
/// </summary>
public ExplicitFilter ExplicitFilter { get; set; } = ExplicitFilter.All;
/// <summary>
/// Download mode for tracks (default: Track)
/// Environment variable: DOWNLOAD_MODE
/// Values: "Track" (download only played track), "Album" (download full album when playing a track)
/// </summary>
public DownloadMode DownloadMode { get; set; } = DownloadMode.Track;
}