-
Notifications
You must be signed in to change notification settings - Fork 69
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
Unable to authenticate for users outside US #23
Comments
Sorry for the problem, and the delay in replying. This could be possibly related to #19? In the UK, going to https://music.amazon.com redirects to the appropriate site once logged in (in this case Does that not happen for the Indian site? |
Still unable to authenticate, here's how i'm trying to use and the error I got from amazonmusic import AmazonMusic
import os
amazon_music = AmazonMusic(credentials=['****', '*****'])
station = amazon_music.create_station('A2FRGLRCG7IBYS')
print('Playing station {0}...'.format(station.name))
for t in station.tracks:
print('Playing {0} by {1} from {2} [{3}]...'.format(t.name, t.artist, t.album, t.albumArtist))
os.system('cvlc --play-and-exit "{0}"'.format(t.getUrl())) Traceback (most recent call last):
File "/Users/user/PycharmProjects/AmazonMusic/getStationPlaylist.py", line 4, in <module>
amazon_music = AmazonMusic(credentials=['******, '********'])
File "/Users/user/PycharmProjects/AmazonMusic/amazonmusic.py", line 102, in __init__
r = self._authenticate(r)
File "/Users/user/PycharmProjects/AmazonMusic/amazonmusic.py", line 152, in _authenticate
raise Exception("Unable to handle captcha: {}".format(tag))
Exception: Unable to handle captcha: [<source data-refresh-url="/ap/captcha?appAction=SIGNIN&captchaType=audio&marketPlaceId=ATVPDKIKX0DER" id="mp3-file" src="https://opfcaptcha-prod.s3.amazonaws.com/9cd4424d1c1447c4b49bec52fa873634.jpg?AWSAccessKeyId=****&Expires=***&Signature=****%3D" type="audio/mpeg"/>] |
Is that with changing the URL to The Unable to handle captcha issue is #19. |
Above error is when calling Traceback (most recent call last):
File "/Users/users/PycharmProjects/AmazonMusic/getStationPlaylist.py", line 4, in <module>
amazon_music = AmazonMusic(credentials=['*******', '=['*******','])
File "/Users/users/PycharmProjects/AmazonMusic/amazonmusic.py", line 112, in __init__
raise Exception("Unable to find appConfig in {}".format(r.content))
Exception: Unable to find appConfig in b'\n\n\n\n |
On browser, when you go to |
The login points to music.amazon.com for authentication however, me as a user from India, my music is not accessible from amazon.com instead it's accessible on amazon.in
Should do something to dynamically point to the correct endpoint for every country or else allow user to manually choose login api endpoint
The text was updated successfully, but these errors were encountered: