Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

{'ERROR': 'The provided url is malformed.'} #12

Open
KathyGCY opened this issue Mar 10, 2022 · 4 comments
Open

{'ERROR': 'The provided url is malformed.'} #12

KathyGCY opened this issue Mar 10, 2022 · 4 comments

Comments

@KathyGCY
Copy link

The example doesn't work1
{'ERROR': 'The provided url is malformed.'}

@michaeldomanek
Copy link

@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

@eliamazzon
Copy link

The example doesn't work1 {'ERROR': 'The provided url is malformed.'}

Same here.

@eliamazzon
Copy link

@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

Tried but didn't work for me.

@michaeldomanek
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants