Jaffa / amazon-music

Provide programmatic access to Amazon Music/Prime Music's streaming service
Apache License 2.0
342 stars 69 forks source link

backslash causes No connection adapters #8

Closed markfoodyburton closed 6 years ago

markfoodyburton commented 6 years ago

On this line, I get a No Connected adapters... https://github.com/Jaffa/amazon-music/blob/ca0f6d6796e2fd7a17f271bcc6c13dee2aaf9155/amazonmusic.py#L179

Removing the prepended '/' makes it "work", but then the URL is a 404 The url generated seems to be: https://music.amazon.fr/api/EU

Any ideas?

danieldaeschle commented 6 years ago

I will take a look on it soon :)

danieldaeschle commented 6 years ago

I don't live in france, does music.amazon.fr exists? I only know .com

markfoodyburton commented 6 years ago

Hi, thanks for looking, yes .fr exists. Actually, I didn't change your code, so clearly it automatically redirects you to the 'right' country site... So, for instance, I am able to search using https://music.amazon.fr/search/needle

danieldaeschle commented 6 years ago

Can you send me your code? I want to try it in my country if i also get a 404.

danieldaeschle commented 6 years ago

According to the code before my PR it should be: '{}/{}/api/{}'.format(self.url, self.region, endpoint) then it works :)