-
Notifications
You must be signed in to change notification settings - Fork 33
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
Audiobooks not downloading as the URL is now too long #118
Comments
You erased some important parts of the issue template, so I can't help as much as I'd like to. To make sure this isn't an issue with the file path being too long:
If that doesn't work, please share the error you're seeing. Possibly related: #95 |
With -f '{ShortRevisionId}' I get:
Loading the url into firefox though gives me the metadata and I can then download it manually. Curiously using curl gives me cloudflare error about being blocked so maybe something else is going on. |
Here's a potentially related comment saying that using the |
I've also run into this problem - the original stack looks like this:
This appears to match the stack above after using As noted, I could load the json and download each track individually so the ability to get the content still seems to be there, just needs some tweaking. |
Using cloudscraper fixed this issue for me. Replacing all references to self.Session.get(url) with scraper.get(url) in __DownloadAudiobook stopped the forbidden 403 error from being generated. |
Before you open an issue
Please make sure you've upgraded to the latest version of kobodl on pypi or docker. Also read through the troubleshooting guide. Try running with
--debug
enabled and see what comes up in the debug log.Do not erase this template, it's here to help you.
Describe the issue
It looks like now kobodl is failing due to the URL returned from the kobo servers being too long for something in the python libraries. I receive a 403 Client error in __DownloadAudiobook but copying the URL manually to firefox loads the manifest. I can then copy then also copy the audiotracks from the manifest into firefox and the audiofile will load correctly.
To Reproduce
Steps to reproduce the behavior:
just call kobodl book get
The text was updated successfully, but these errors were encountered: