diff --git a/Server/databaseGenerator.py b/Server/databaseGenerator.py index fac4221..19f1b67 100644 --- a/Server/databaseGenerator.py +++ b/Server/databaseGenerator.py @@ -2,11 +2,10 @@ import os from mutagen.easyid3 import EasyID3 from mutagen.mp3 import MP3 import requests, ast, time, math, argparse, json - -loading = ["-","\\","|","/"] - +# place your lastfm key in the slot below apikeylastfm="YourLastfmKeyHere" +loading = ["-","\\","|","/"] songFiles = os.listdir(r'./sound') parser=argparse.ArgumentParser(description="Options for the generation of the song database") parser.add_argument('-m', '--mode', help='new/update: Remake database or update current', default= "update") diff --git a/readme.md b/readme.md index 3aff8ca..965eb8a 100644 --- a/readme.md +++ b/readme.md @@ -38,6 +38,7 @@ These are specific details on each section of the app, and how to use them - Art is retrieved from LastFM - Running with `--mode (update/new)` either updates the current database and only adds new songs, or recreates the entire database (update is default) - Running with `--art (True/False)` retrieves art from LastFM or doesn't (True is default) + - *Can only generate one song / 0.25 seconds, to avoid pinging the LastFM server too much* - `songDatabase.json` stores all the information about each song in this format: ``` [