Comments (9)
The error code say, that the access token from login is not accepted. Can you try login with auth = Authenticator.from_external_login("au")
.
Afterwards register with auth.register_device().
from audible.
I can verify that there is some problem register a new device in Australia. I‘ve got the same error code. I will test out more.
If you have books on or don’t take care about login to other marketplaces you can use another country code for login and register. After that change the locale code
in auth file to au and remove website cookies (they are not valid for Australia marketplace)!
import audible
auth = audible.Authenticator.from_file(...)
auth.website_cookies = None
# or fetch new ones for Australia
auth.set_website_cookies_for_country("au")
auth.locale = "au"
auth.to_file()
from audible.
I have identified the problem. Amazon Australia handles access_token check differently.
The access_token contains the device_serial which where used at login. And the device_serial when register doesn‘t match the device_serial from login.
I will fix this as soon as possible.
from audible.
I‘ve added a PR now. I can register a new device on Australia marketplace with this. Need test for other marketplaces.
I implemented a serial generator which generates a 32 bytes serial. iPhone has typical 40 bytes. But the login and register running fine. Have to take a look at this.
from audible.
Wow. Nice fix. Will report back!
from audible.
Great work.
I verified things work in multiple regions.
I used a 40 hex digit (lower case) device ID for the iphone and passed the whole string to the openid login request (prepended with "device:") and that worked. Don't think you need or want to append the "#A2CZJZGLK2JJVM".
I'm not a python developer, so can't provide much other feedback. (OpenAudible developers use java.)
I did see an instance where your message: "Approval alert detected! Amazon sends you a mail" was used when Amazon actually sent a text message with a link to the confirm URL. So might need to change that to "email or text message".
Owe you a beer or coffee.. Or more. Closing as fixed.
from audible.
I wanted to be close to the iOS Audible app. The iOS App uses the serial + "#" + the device type to build the hex encoded device id.
That‘s the same for the Kindle and the Alexa App. Using the serial only may be running fine for now. But there is no quarantee that this would be not changed like the problem above. Amazon Australia changed the access token check some weeks ago.
Thanks for you advice with the approval alert.
Cheers with a beer ...
from audible.
Ah- didn’t catch what that # number was. That bug would have taken me weeks. Just released a beta of OpenAudible with the fix. Let me know if you want a license or some $. OpenAudible at email dot tg. Thanks.
from audible.
@openaudible
I wrote a mail to you yesterday!
from audible.
Related Issues (20)
- 错误提示 HOT 19
- Quality is set to `Extreme` even set to `high` HOT 1
- TEST: New device registration method HOT 4
- Extract Audible Bookmark Notes HOT 3
- Issue getting activation bytes from auth server HOT 9
- Switch to poetry, implement CI+CD, remove Python version <3.8
- Lift upper version restriction on `httpx`. HOT 3
- Is there any way to get a list of books in a series? HOT 1
- Amazon authentication code not handled properly HOT 2
- I need some help with metadata HOT 2
- Audible brazil HOT 11
- Captcha Login Fails 'KeyError' HOT 17
- OTP prompt for 2FA in JupyterLab HOT 4
- Building an external login URL HOT 9
- encryptedPwd HOT 5
- How does the BestSellers sort_by option in the APIs work? HOT 3
- Where does the file get stored with to_file() HOT 5
- Can't filter plus catalog books from 'catalog/products' HOT 9
- state token for library requests HOT 2
- response_callback no longer works properly with the endpoint: https://cde-ta-g7g.amazon.com/FionaCDEServiceEngine/sidecar HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from audible.