feat(dz): add playlist download, existence check, and improved queue handling

Add ability to download entire playlists as M3U8 files, with UI
integration and per-track download actions. Implement track existence
checking to avoid duplicate downloads, respecting the overwrite setting.
Improve queue manager to sync downloaded tracks to the library
incrementally. Refactor playlist parsing and metadata reading to use the
Rust backend for better performance and accuracy. Update UI to reflect
track existence and download status in playlist views.

BREAKING CHANGE: Deezer playlist and track download logic now relies on
Rust backend for metadata and new existence checking; some APIs and
internal behaviors have changed.
This commit is contained in:
2025-10-02 19:26:12 -04:00
parent 40e72126aa
commit e1e7817c71
17 changed files with 1341 additions and 332 deletions

View File

@@ -124,18 +124,13 @@ export async function downloadTrack(
// Apply tags (works for both MP3 and FLAC)
console.log('Tagging audio file...');
try {
await tagAudioFile(
finalPath,
track,
appSettings.embedCoverArt ? coverData : undefined,
appSettings.embedLyrics
);
console.log('Tagging complete!');
} catch (error) {
console.error('Failed to tag audio file:', error);
// Non-fatal error - file is still downloaded, just not tagged
}
await tagAudioFile(
finalPath,
track,
appSettings.embedCoverArt ? coverData : undefined,
appSettings.embedLyrics
);
console.log('Tagging complete!');
// Save LRC sidecar file if enabled
if (appSettings.saveLrcFile && track.lyrics?.sync) {