{'ERROR': 'The provided url is malformed.'}
KathyGCY opened this issue · 4 comments
The example doesn't work1
{'ERROR': 'The provided url is malformed.'}
@KathyGCY
I wanted to try out get_track_url_info()
I added string = unquote(string)
to _str_to_json
and get_track_url_info()
works now
def _str_to_json(string: str) -> dict:
string = unquote(string)
json_acceptable_string = string.replace('\n', '').strip()
converted_string = yaml.load(json_acceptable_string, Loader=yaml.FullLoader)
return converted_string
I think every function is outdated and needs to be changed, but I guess the project will not be updated
The example doesn't work1 {'ERROR': 'The provided url is malformed.'}
Same here.
@KathyGCY I wanted to try out
get_track_url_info()
I addedstring = unquote(string)
to_str_to_json
andget_track_url_info()
works nowdef _str_to_json(string: str) -> dict: string = unquote(string) json_acceptable_string = string.replace('\n', '').strip() converted_string = yaml.load(json_acceptable_string, Loader=yaml.FullLoader) return converted_stringI think every function is outdated and needs to be changed, but I guess the project will not be updated
Tried but didn't work for me.
I used from urllib.parse import unquote
I cloned the project and checked the example again and it works for me, maybe wrong import
But I think the offical spotify API offers everything this project offers so I think you should use it instead.