feat: enforce playlist selection before starting the game and update playlist handling
All checks were successful
Build and Push Docker Image / docker (push) Successful in 6s

This commit is contained in:
2025-10-12 22:55:03 +02:00
parent 17faca1f46
commit 0e51e233c3
5 changed files with 51 additions and 14 deletions

View File

@@ -108,13 +108,6 @@ export async function loadDeck(playlistId = 'default') {
})
);
tracks.push(...batchTracks);
// Optional: Log progress for large playlists
if (files.length > 100 && (i + BATCH_SIZE) % 100 === 0) {
console.log(
`Loading playlist ${playlistId}: ${Math.min(i + BATCH_SIZE, files.length)}/${files.length} tracks processed`
);
}
}
console.log(`Loaded ${tracks.length} tracks from playlist: ${playlistId}`);