Cleaned up Generator + readme

This commit is contained in:
dylan-fournier 2024-05-27 13:09:00 -04:00
parent 889137712a
commit 7a22c9efec
2 changed files with 3 additions and 3 deletions

View file

@ -2,11 +2,10 @@ import os
from mutagen.easyid3 import EasyID3 from mutagen.easyid3 import EasyID3
from mutagen.mp3 import MP3 from mutagen.mp3 import MP3
import requests, ast, time, math, argparse, json import requests, ast, time, math, argparse, json
# place your lastfm key in the slot below
loading = ["-","\\","|","/"]
apikeylastfm="YourLastfmKeyHere" apikeylastfm="YourLastfmKeyHere"
loading = ["-","\\","|","/"]
songFiles = os.listdir(r'./sound') songFiles = os.listdir(r'./sound')
parser=argparse.ArgumentParser(description="Options for the generation of the song database") 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") parser.add_argument('-m', '--mode', help='new/update: Remake database or update current', default= "update")

View file

@ -38,6 +38,7 @@ These are specific details on each section of the app, and how to use them
- Art is retrieved from LastFM - 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 `--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) - 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: - `songDatabase.json` stores all the information about each song in this format:
``` ```
[ [