1
Structure de vos fichiers
Placez ce fichier index.html et generate_index.py au mĂȘme niveau que votre dossier songs/ :
đ MonKaraoke/
âââ đ generate_index.py
âââ đ index.html
âââ đ songs_index.json (gĂ©nĂ©rĂ© automatiquement)
âââ đ songs/
âââ đ Bohemian Rhapsody - Queen/
â âââ đ Bohemian Rhapsody.txt
â âââ đ” song.mp3
â âââ đŒïž cover.jpg
âââ đ ...
2
Générer l'index JSON
Lancez la commande suivante dans votre terminal pour scanner vos 900+ chansons en quelques secondes :
python generate_index.py
3
Lancer le serveur web local
Pour pouvoir lire les MP3 et images correctement, lancez un serveur Web local Python :
python -m http.server 8000
Ouvrez ensuite votre navigateur sur : http://localhost:8000