From 7a22c9efecf9ed3bd4568f02c5c13878eb1d6ba8 Mon Sep 17 00:00:00 2001 From: dylan-fournier <124598538+dylan-fournier@users.noreply.github.com> Date: Mon, 27 May 2024 13:09:00 -0400 Subject: [PATCH] Cleaned up Generator + readme --- Server/databaseGenerator.py | 5 ++--- readme.md | 1 + 2 files changed, 3 insertions(+), 3 deletions(-) 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: ``` [