diff --git a/README.md b/README.md index 3e8ee5f8..d09ad7aa 100644 --- a/README.md +++ b/README.md @@ -75,3 +75,9 @@ Generate full DD Beat Map from json files in repository (does not map notes atm, ```bash .venv/Scripts/python drs2dd.py --song-id 187 ``` + +Generate all DD Beat Maps from json files in repository (does not map notes atm, todo) + +```bash +.venv/Scripts/python drs2dd_all.py +``` diff --git a/drs2dd_all.py b/drs2dd_all.py index 54c0f84a..cc48c09a 100644 --- a/drs2dd_all.py +++ b/drs2dd_all.py @@ -4,11 +4,15 @@ from drs2dd import create_dd_tracks_from_DRSSongData from drsxml2json import ALL_TRACK_PATHS from drsxml2json import get_songdata_from_track_id -if __name__ == '__main__': +def main(): for song_id in ALL_TRACK_PATHS: if song_data := get_songdata_from_track_id(int(song_id)): created = create_dd_tracks_from_DRSSongData( song_data, f'tracks/{song_data.info.title_name}', ) print(f'Song {song_id} created?: {created}') + + +if __name__ == '__main__': + main()