feat(playlist-import): concurrent matching with progress reporting
Replace sequential track matching with buffer_unordered(8) for 8 concurrent Qobuz API calls, reducing import time ~8x. Add real-time progress events (import:progress, import:phase) emitted from Rust backend and consumed by frontend via Tauri event listeners. Frontend shows progress bar, matching status text, and current track name during import. Individual search failures are now logged and skipped instead of aborting the entire import.
This commit is contained in:
1 parent
a46a422a04
commit
9fdd1dd0df
10 files changed
+278
-37
No files matched your search
@@ -20,6 +20,7 @@ pub async fn playlist_import_preview(
|
||||
|
||||
#[tauri::command]
|
||||
pub async fn playlist_import_execute(
|
||||
app: tauri::AppHandle,
|
||||
url: String,
|
||||
name_override: Option<String>,
|
||||
is_public: Option<bool>,
|
||||
@@ -33,6 +34,7 @@ pub async fn playlist_import_execute(
|
||||
&client,
|
||||
name_override.as_deref(),
|
||||
is_public.unwrap_or(false),
|
||||
&app,
|
||||
)
|
||||
.await
|
||||
.map_err(|e| e.to_string())
|
||||
|
||||
Reference in new issue
Block a user