llllllllll / slider

Utilities for working with osu! files and data
https://llllllllll.github.io/slider/index.html
GNU Lesser General Public License v3.0
39 stars 17 forks source link

error parsing b/2571858 #108

Closed tybug closed 1 year ago

tybug commented 1 year ago
from slider import *

library = Library(".")
b = library.lookup_by_id(2571858, download=True, save=True)
Traceback (most recent call last):
  File "/opt/homebrew/lib/python3.10/site-packages/slider/library.py", line 293, in lookup_by_id
    return self._read_beatmap(self, beatmap_id=beatmap_id)
  File "/opt/homebrew/lib/python3.10/site-packages/slider/library.py", line 262, in _raw_read_beatmap
    raise KeyError(key)
KeyError: 2571858

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/Users/tybug/Desktop/Liam/coding/sandbox/_slider.py", line 5, in <module>
    b = library.lookup_by_id(2571858, download=True, save=True)
  File "/opt/homebrew/lib/python3.10/site-packages/slider/library.py", line 297, in lookup_by_id
    return self.download(beatmap_id, save=save)
  File "/opt/homebrew/lib/python3.10/site-packages/slider/library.py", line 445, in download
    beatmap = Beatmap.parse(data.decode('utf-8-sig'))
  File "/opt/homebrew/lib/python3.10/site-packages/slider/beatmap.py", line 2560, in parse
    hit_objects=list(map(
  File "/opt/homebrew/lib/python3.10/site-packages/slider/beatmap.py", line 423, in parse
    return parse(Position(x, y), time, hitsound, rest)
  File "/opt/homebrew/lib/python3.10/site-packages/slider/beatmap.py", line 811, in _parse
    Curve.from_kind_and_points(slider_type, points, pixel_length),
  File "/opt/homebrew/lib/python3.10/site-packages/slider/curve.py", line 38, in from_kind_and_points
    return Catmull(points, req_length)
  File "/opt/homebrew/lib/python3.10/site-packages/slider/curve.py", line 364, in __init__
    p_aheads[0] = p_aheads[1]
IndexError: index 1 is out of bounds for axis 0 with size 1