GithubHelp home page GithubHelp logo

Comments (5)

Jaffa avatar Jaffa commented on June 29, 2024

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 music.amazon.co.uk).

Does that not happen for the Indian site?

from amazon-music.

lohriialo avatar lohriialo commented on June 29, 2024

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&amp;captchaType=audio&amp;marketPlaceId=ATVPDKIKX0DER" id="mp3-file" src="https://opfcaptcha-prod.s3.amazonaws.com/9cd4424d1c1447c4b49bec52fa873634.jpg?AWSAccessKeyId=****&amp;Expires=***&amp;Signature=****%3D" type="audio/mpeg"/>]

from amazon-music.

Jaffa avatar Jaffa commented on June 29, 2024

Still unable to authenticate

Is that with changing the URL to music.amazon.in? What happens when you go to music.amazon.com in a browser and you sign in?

The Unable to handle captcha issue is #19.

from amazon-music.

lohriialo avatar lohriialo commented on June 29, 2024

Above error is when calling music.amazon.com. A different error if I change the endpoint to music.amazon.in

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

from amazon-music.

lohriialo avatar lohriialo commented on June 29, 2024

On browser, when you go to music.amazon.com, it redirects to https://www.amazon.in/ap/signin
Once logged in, goes to music.amazon.in

from amazon-music.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.