Add missing script to README.md

This commit is contained in:
544146
2023-09-16 22:44:32 +01:00
parent 2377b8d96f
commit 8b8846c082
2 changed files with 11 additions and 1 deletions
+6
View File
@@ -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
```
+5 -1
View File
@@ -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()