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

@@ -25,6 +25,14 @@ public interface IDownloadService
/// <returns>A stream of the audio file</returns>
Task<Stream> DownloadAndStreamAsync(string externalProvider, string externalId, CancellationToken cancellationToken = default);
/// <summary>
/// Downloads remaining tracks from an album in background (excluding the specified track)
/// </summary>
/// <param name="externalProvider">The provider (deezer, spotify)</param>
/// <param name="albumExternalId">The album ID on the external provider</param>
/// <param name="excludeTrackExternalId">The track ID to exclude (already downloaded)</param>
void DownloadRemainingAlbumTracksInBackground(string externalProvider, string albumExternalId, string excludeTrackExternalId);
/// <summary>
/// Checks if a song is currently being downloaded
/// </summary>