+ {#if !migrating && !progress?.completed}
+
+
+
Legacy Downloads Detected
+
+ We found {totalTracks} downloads from a previous version
+ that need to be migrated to the new organized format.
+
+
+ This process will:
+
+
+ - Fetch complete metadata from Qobuz
+ - Add proper tags to your FLAC files
+ - Organize files into Artist/Album folders
+ - Embed album artwork
+ - Add tracks to your local library (if enabled)
+
+
+ Note: This may take a few minutes depending on your internet
+ connection and the number of downloads. The old files will be deleted after
+ successful migration.
+
+
+ {:else if migrating || (progress && progress.in_progress)}
+
+
+
+
+
Migrating Downloads...
+ {#if progress}
+
+
+ {progress.processed} / {progress.total_tracks} tracks processed
+ ({progress.successful} successful, {progress.failed} failed)
+
+ {:else}
+
Starting migration...
+ {/if}
+
+ {:else if progress?.completed}
+
+
+
+
+
Migration Complete
+
+
+
+ {progress.successful} successful
+
+ {#if progress.failed > 0}
+
+
+ {progress.failed} failed
+
+ {/if}
+
+ {#if progress.errors.length > 0}
+
+ View errors ({progress.errors.length})
+
+ {#each progress.errors as error}
+
+ Track {error.track_id}: {error.error_message}
+
+ {/each}
+
+
+ {/if}
+
+ Your downloads have been organized and are now available in your local library.
+
+
+ {/if}
+
+ {/snippet}
+
+ {#snippet footer()}
+