Add missing script to README.md
This commit is contained in:
@@ -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
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user