python-youtube-music
python-youtube-music copied to clipboard
bug: the search method does not work
version 0.1.0 pyrhon 3.13.2 mac m1 arm64
>>> import ytm
>>> api = ytm.YouTubeMusic()
>>> results = api.search('alt-j')
Traceback (most recent call last):
File "<python-input-2>", line 1, in <module>
results = api.search('alt-j')
File "/Users/test/projects/projectname/venv/lib/python3.13/site-packages/ytm/decorators/_enforce.py", line 132, in wrapper
resp = func(*args, **kwargs)
File "/Users/test/projects/projectname/venv/lib/python3.13/site-packages/ytm/decorators/enforce_return_value.py", line 52, in wrapper
return func(*args, **kwargs)
File "/Users/test/projects/projectname/venv/lib/python3.13/site-packages/ytm/decorators/parse.py", line 53, in wrapper
return parser(func(*args, **kwargs))
File "/Users/test/projects/projectname/venv/lib/python3.13/site-packages/ytm/decorators/_enforce.py", line 132, in wrapper
resp = func(*args, **kwargs)
File "/Users/test/projects/projectname/venv/lib/python3.13/site-packages/ytm/decorators/enforce_parameters.py", line 52, in wrapper
return func(*args, **kwargs)
File "/Users/test/projects/projectname/venv/lib/python3.13/site-packages/ytm/parsers/decorators/catch.py", line 56, in wrapper
raise exceptions.ParserError \
...<3 lines>...
)
ParserError: search() encountered an error: 'NoneType' object has no attribute 'items'
>>>