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

not working in France #99

Open
dfrey opened this issue Nov 7, 2022 · 8 comments
Open

not working in France #99

dfrey opened this issue Nov 7, 2022 · 8 comments

Comments

@dfrey
Copy link

dfrey commented Nov 7, 2022

Hi,
thanks for this software. I just tested it on my raspberry py and the login process does not work. Essentially, your code expects a page with two input boxes, one for username and another for password. The current Amazon login page in France displays first a page asking for the username and only later does it show a page asking for a password.
Any chance you can fix this? Otherwise I can give it a shot when I have some spare time.

@spacys
Copy link
Owner

spacys commented Dec 3, 2022

Behind this "two" logon pages is still the same form, so it should work. Do you see any error messages?

@spacys
Copy link
Owner

spacys commented Jan 20, 2023

is it working now?

@edheldil
Copy link

edheldil commented Mar 1, 2023

I have the same issue, as far as I can tell. I start the plugin, enter my username and password and the plugin reports some error and I have to input my username / password again next time I run the plugin. The error message refers to log, but that does not contain anything relevant.

I use kodi on raspberry pi with LibreElec, amazon.co.uk account from Czech Republic.

@edheldil
Copy link

edheldil commented Mar 1, 2023

Did amazon change their login pages?

2023-03-01 23:32:37.835 T:4868    error <general>: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
                                                    - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                                   Error Type: <class 'mechanize._response.get_seek_wrapper_class.<locals>.httperror_seek_wrapper'>
                                                   Error Contents: HTTP Error 404: Not Found
                                                   Traceback (most recent call last):
                                                     File "/storage/.kodi/addons/plugin.audio.amazonmedia/amazonmedia.py", line 43, in reqDispatch
                                                       self.credentials = self.load()
                                                                          ^^^^^^^^^^^
                                                     File "/storage/.kodi/addons/plugin.audio.amazonmedia/resources/lib/tools.py", line 135, in load
                                                       with open(oPath, 'rb') as file:
                                                            ^^^^^^^^^^^^^^^^^
                                                   FileNotFoundError: [Errno 2] No such file or directory: '/storage/.kodi/userdata/addon_data/plugin.audio.amazonmedia/data.obj'
                                                   
                                                   During handling of the above exception, another exception occurred:
                                                   
                                                   Traceback (most recent call last):
                                                     File "/storage/.kodi/addons/plugin.audio.amazonmedia/amazonmedia.py", line 718, in <module>
                                                       AmazonMedia().reqDispatch()
                                                     File "/storage/.kodi/addons/plugin.audio.amazonmedia/amazonmedia.py", line 45, in reqDispatch
                                                       self.credentials = AMlogon().amazonLogon()
                                                                          ^^^^^^^^^^^^^^^^^^^^^^^
                                                     File "/storage/.kodi/addons/plugin.audio.amazonmedia/resources/lib/logon.py", line 72, in amazonLogon
                                                       self._br.open(amzURL)
                                                     File "/storage/.kodi/addons/script.module.mechanize/lib/mechanize/_mechanize.py", line 253, in open
                                                       return self._mech_open(url_or_request, data, timeout=timeout)
                                                              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                                                     File "/storage/.kodi/addons/script.module.mechanize/lib/mechanize/_mechanize.py", line 309, in _mech_open
                                                       raise response
                                                   mechanize._response.get_seek_wrapper_class.<locals>.httperror_seek_wrapper: HTTP Error 404: Not Found
                                                   -->End of Python script error report<--

@edheldil
Copy link

edheldil commented Mar 1, 2023

Perhaps this is relevant, as the login process in browser uses /ap/signin as well.
https://stackoverflow.com/questions/54622367/how-to-login-to-audible-com-subsidiary-of-amazon-using-python

@spacys
Copy link
Owner

spacys commented Mar 20, 2023

So you have a Czech Republic account? Which Amazon Domain was used...was it amazon.co.uk? Is this a valid combination?

@ulhu
Copy link

ulhu commented Mar 27, 2023

Hello,
I have the same issue. I use a German Account with the German Domain.

@gd71
Copy link

gd71 commented Aug 6, 2023

Hello,
got it working successfully from France by using this url in amazonLogon function in logon.py
amzURL = 'https://music.amazon.{}/forceSignIn?useHorizonte=true'.format(self.credentials.USERTLD)
rest of the code in untouched
Not tested for other countries

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

5 participants