tombulled / python-youtube-music

Python 3 YouTube Music Web API Client
GNU General Public License v3.0
65 stars 14 forks source link

Failed to search for a song #15

Closed AymenFJA closed 2 years ago

AymenFJA commented 2 years ago

Following the documentation leads to the following error (Python 3.8 Conda distribution):

In [16]: songs = api.search_songs('cry')
---------------------------------------------------------------------------
MethodError                               Traceback (most recent call last)
<ipython-input-16-5100653ebde7> in <module>
----> 1 songs = api.search_songs('cry')

~/Personal_Projects/python-youtube-music/ytm/decorators/_enforce.py in wrapper(*args, **kwargs)
    130                         )
    131 
--> 132             resp = func(*args, **kwargs)
    133 
    134             if enforce_return \

~/Personal_Projects/python-youtube-music/ytm/decorators/enforce_return_value.py in wrapper(*args, **kwargs)
     50         '''
     51 
---> 52         return func(*args, **kwargs)
     53 
     54     return wrapper

~/Personal_Projects/python-youtube-music/ytm/decorators/parse.py in wrapper(*args, **kwargs)
     51             '''
     52 
---> 53             return parser(func(*args, **kwargs))
     54 
     55         return wrapper

~/Personal_Projects/python-youtube-music/ytm/apis/AbstractYouTubeMusic/decorators/catch.py in wrapper(*args, **kwargs)
     58             error_message = str(error)
     59 
---> 60         raise exceptions.MethodError \
     61         (
     62             f'{func.__name__}() encountered an error: {error_message}'

MethodError: search_songs() encountered an error: _search_filter() encountered an error: _search_filter() encountered an error: No search results found
sina8013 commented 2 years ago

i got this error to

sina8013 commented 2 years ago

if some body can fix it, tell me too, Tnx.

tombulled commented 2 years ago

Thanks for raising this issue, I'll take a look into this now

tombulled commented 2 years ago

I created and merged #16, if possible please are you able to install the latest version of python-youtube-music and see if this fixes your issue?

AymenFJA commented 2 years ago

I will pull/install/test and report back!

AymenFJA commented 2 years ago

Thanks, it works now.

tombulled commented 2 years ago

Awesome! Please let me know if you have any further issues. All the best