1
0
mirror of synced 2024-11-24 05:30:11 +01:00

parsers.py: Handle STYLE to fix Ura conversion

Fixes #15.
This commit is contained in:
Viv 2023-06-03 22:45:03 -04:00
parent 41d18cf900
commit 2f95a8505b

View File

@ -98,6 +98,11 @@ def getCourse(tjaHeaders, lines):
else:
balloons = []
headers['balloon'] = balloons
# STYLE is a P1/P2 command, which we don't support yet, so normally this would be a NotImplemetedError.
# However, TakoTako outputs `STYLE:SINGLE` when converting Ura charts, so throwing an error here prevents
# Ura charts from being converted. See: https://github.com/vivaria/tja2fumen/issues/15#issuecomment-1575341088
elif line["name"] == 'STYLE':
pass
else:
raise NotImplementedError