mirror of
https://github.com/SoPat712/allstarr.git
synced 2026-02-09 23:55:10 -05:00
feat: add download mode option (Track/Album) for Deezer downloads
Closes #10
This commit is contained in:
@@ -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;
|
||||
}
|
||||
Reference in New Issue
Block a user