-
-
Notifications
You must be signed in to change notification settings - Fork 48
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
Storytel Cloudflare block #137
Comments
Same issue for me. |
Changing the device ID in audiobookdl/sources/storytel.py (Line 173) fixed it for me. |
@xdaGari exacty how you changed it? |
Thank you, included in the latest release: |
@freddy36 not fixed Finding compatible source if you execute the command you get the old version installed. loads the old version |
git command gets v0.7.3 and also I tried downloading the latest zip and it still is v0.7.3 |
blocked again, same error |
should be fixed by #140 |
it seems fixed now, thanks |
Blocked again :( with 0.7.7 |
i can confirm that blocked again |
If you update user agent with these, it will be fine: Storytel/24.52 |
I have changed user agent but get same error |
Works for me. Just tried again. I don't have other changes. Without the user agent change I get cloudflare blocked error. |
You changed it in storytel.py right it’s only one string |
Wich version of audiobook-dl do you use? thanks for your help :) |
The latest with random uuid. Installed with: I looked the version numbers from Play Store's latest Storytel release. storytel.py line 167: |
and you have the audiobook in your shelf and copy the link from your browser, and the download works? |
No. I never put them to shelf. I only copy the links from the browser and it works. |
k. i dont get it. same version here + edit in storytel.py and it gives me blocked by cloudflare |
same to me |
I did fresh install on laptop (with python 3.11). With user agent change it started working. Previous trials were on my phone with python 3.8. I wonder how have you installed your audiobook-dl. If you cloned with git, did you run the "python3 setup.py install" after changes? With pip installation "setup.py install" not needed. |
im on Python 3.12.8. install via pip installation |
I’ve tryed a fresh install in venv but same result |
Perhaps your IP is blocked due to previous attempts? Can you try to change the IP or use different connection? VPN? |
No, not related to IP block, tryed with VPN and have same error. Sure you don't have specific configuration? For example how you donwlod abook without put it in shelf? For me never worked without |
The working one is with: Blocked: |
Probably some newer openssl feature which is only set when using python but not regular browsers. |
@dev-O-T in my situation i've installed OpenSSL 3.3.2 and Python 3.12.6. Until 2/3 days ago no issue with download |
The one I had working is blocked now too. |
Same issue here |
Still not working |
Got it working locally by migrating from requests to curl_cffi.requests. Very minimal changes required. |
good to hear :) where do you make these changes or how? |
Good, can you tell us where you make changes? Thanks |
Sure, audiobookdl/sources/source/init.py:
And in the end of file:
audiobookdl/sources/storytel.py:1 audiobookdl/utils/audiobook.py:3: I think thats all. I get one warning while running, but the downloaded file is ok: I don't know will this break other sources. It was just quick and dirty trial, and luckily the first download with Storytel worked. |
its working. thank you so much :) maybe because of the forced ssl/tls connection? :) |
I've made changes but i get this errore while trying download: |
do you have curl_cffi installed? pip install curl_cffi |
I'm stupid... sorry now it works |
I did a Python script for sniffing the TLS fingerprints, and got some values while opening the latest official Android client. Just in case someone wants to try with the same fingerprints: IPv6: IPv4: IPv4 is slightly different. |
not working for me. :( |
have you change all files? |
Yes I did. Do I need to reinstall after that? with sudo python3 setup.py install? |
nope. wich version did you use? |
im using the last version, pulled from github. my utils/audiobook.py file https://pastebin.com/k5C1g1s9 I did install curl_cffi and Im using the command |
All releases of In anyhoot, I tried to follow your suggestion @dev-O-T, but to no avail.
[...]
Installed the new requirement: But I get the same error message:
Traceback:
Thank you for trying to help. Edit: I am on Windows, and I need to run audiobook from python with the Full CLI command: |
did you get any error message? |
dou you have installed the lasted version of audiobook? if you cant check this - just delete the actual modul and install the latest version with 0.7.7. maybe add the tip from dev> storytel.py line 167: |
Have you tried to use username and password instead of cookies? |
I did my own fork, if someone want to skip the manual edits. Perhaps the source changes can be cherry picked to this original repo too. |
just tried. didn't work. |
For me, changing the Thank you for pointing this out @notavailable-1 |
I did some trials, and figured out, it's the release number that matters. Not the version number in User-Agent string. At the moment there is some rule: Release > 2288629 Release/2288630 is the first working number in my trials. I can put arbitrary number as version. Even Storytel/00.01 works. Actually, the User-Agent string can be reduced to minimal like this, and it still works: Previous android app version was: 24.52 (2288809) |
Sir, you have won the internet for today, it works like a charm! |
Installation method:
Github repo & pip/pypi (tried 2 times)
Version: 0.7.3
Python version : 3.12
Describe the bug
Finding compatible source
Authenticating with storytel
ERROR: Access blocked by Cloudflare
The text was updated successfully, but these errors were encountered: