Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Some beatmaps can't be parsed correctly #105

Open
o2161405 opened this issue Oct 25, 2022 · 0 comments
Open

Some beatmaps can't be parsed correctly #105

o2161405 opened this issue Oct 25, 2022 · 0 comments

Comments

@o2161405
Copy link

o2161405 commented Oct 25, 2022

https://osu.ppy.sh/beatmapsets/1649614#osu/3469053

>>> slider.Library.create_db(r"C:\Users\Admin\Desktop\Songs", show_progress=True)
Processing beatmaps:   [------------------------------------]  $ATORI ZOOM, VOID, 1NONLY, LEX PAIN - Chrome Beretta (waisinz) [CALLIN UP LEG]
Traceback (most recent call last):
  File "C:\Users\Admin\AppData\Local\Programs\Python\Python311\Lib\site-packages\slider\beatmap.py", line 887, in _parse
    end_time = timedelta(milliseconds=int(end_time))
                                      ^^^^^^^^^^^^^
ValueError: invalid literal for int() with base 10: '9685:0:0:0:0:'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\Admin\AppData\Local\Programs\Python\Python311\Lib\site-packages\slider\library.py", line 191, in create_db
    beatmap = Beatmap.parse(data.decode('utf-8-sig'))
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\Admin\AppData\Local\Programs\Python\Python311\Lib\site-packages\slider\beatmap.py", line 2560, in parse
    hit_objects=list(map(
                ^^^^^^^^^
  File "C:\Users\Admin\AppData\Local\Programs\Python\Python311\Lib\site-packages\slider\beatmap.py", line 423, in parse
    return parse(Position(x, y), time, hitsound, rest)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\Admin\AppData\Local\Programs\Python\Python311\Lib\site-packages\slider\beatmap.py", line 889, in _parse
    raise ValueError(f'end_time should be an int, got {end_time!r}')
ValueError: end_time should be an int, got '9685:0:0:0:0:'

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "C:\Users\Admin\AppData\Local\Programs\Python\Python311\Lib\site-packages\slider\library.py", line 196, in create_db
    raise ValueError(
ValueError: Failed to parse "C:\Users\Admin\Desktop\Songs\$ATORI ZOOM, VOID, 1NONLY, LEX PAIN - Chrome Beretta (waisinz) [CALLIN UP LEG].osu". Use --skip-exceptions to skip this file and continue.
>>>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant