Skip to content

Some beatmaps can't be parsed correctly #105

@o2161405

Description

@o2161405

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.
>>>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions