AniWorld-Downloader icon indicating copy to clipboard operation
AniWorld-Downloader copied to clipboard

Cloudflare Turnstile captcha during redirect

Open simonholzer opened this issue 8 months ago • 5 comments

i just installed the docker image on portainer web ui works and i can search animes but any download i try failes

simonholzer avatar Mar 20 '26 20:03 simonholzer

I just tested downloading through the WebUI using VOE, and it worked for me. I haven’t tested Docker, but if downloading works outside of it, it should probably work there as well.

Could you share the exact error you’re seeing?

I’d also recommend trying the latest commit. You’ll need Git installed for that.

phoenixthrush avatar Mar 20 '26 21:03 phoenixthrush

I personally encountered this error when downloading multiple episodes. It appears that VOE has implemented a Cloudflare check, which results in a connection error or similar issues.

I used the following command:

aniworld --language 'German Dub' -a Download -o '/app/Serien' https://s.to/serie/the-rookie/staffel-1/episode-11

This episode only has VOE as a provider, and the language German Dub is available.

The error I encountered was:

2026-03-21 12:59:01 - ERROR - ../root/.local/lib/python3.11/site-packages/aniworld/models/common/common.py:550:download - Download attempt 1/3 failed: No VOE video source found in page.
2026-03-21 12:59:01 - ERROR - ../root/.local/lib/python3.11/site-packages/aniworld/models/common/common.py:550:download - Download attempt 2/3 failed: No VOE video source found in page.
2026-03-21 12:59:01 - ERROR - ../root/.local/lib/python3.11/site-packages/aniworld/models/common/common.py:550:download - Download attempt 3/3 failed: No VOE video source found in page.
2026-03-21 12:59:01 - ERROR - ../root/.local/lib/python3.11/site-packages/aniworld/entry.py:198:aniworld - Unexpected error occurred
Traceback (most recent call last):
File "/root/.local/lib/python3.11/site-packages/aniworld/entry.py", line 164, in aniworld
run_action(obj, action)
File "/root/.local/lib/python3.11/site-packages/aniworld/entry.py", line 35, in run_action
getattr(obj, action)()
File "/root/.local/lib/python3.11/site-packages/aniworld/models/common/common.py", line 462, in download
ffmpeg.input(self.stream_url, **input_kwargs).output(
^^^^^^^^^^^^^^^
File "/root/.local/lib/python3.11/site-packages/aniworld/models/s_to/episode.py", line 294, in stream_url
stream_url = provider_functions[
^^^^^^^^^^^^^^^^^^^
File "/root/.local/lib/python3.11/site-packages/aniworld/extractors/provider/voe.py", line 118, in get_direct_link_from_voe
raise ValueError("No VOE video source found in page.")
ValueError: No VOE video source found in page.
An unexpected error occurred: No VOE video source found in page.
Please check the logs for more details.

WimWamWom avatar Mar 23 '26 11:03 WimWamWom

I personally encountered this error when downloading multiple episodes. It appears that VOE has implemented a Cloudflare check, which results in a connection error or similar issues.

I am pretty sure that it is s.to not VOE. I noticed that since s.to/Serienstream updated their website to version 2, they implemented Cloudflare Turnstile for the redirect links.

For instance for this one "https://serienstream.to/r?t=eyJpdiI6IjhFUW80N2dOa2dBTEljdHpxbDlwcUE9PSIsInZhbHVlIjoiOWkxME9vU2F5OERmYTAxOUhSU3FhYS9EV3h2YVRZNkxBSFR0VXNlb0ZqandvaFZRVTlZQjhHYml6OEU5RHBDZk9Iemwwb1RpRlhpa1Q5KzQ4Mkh4M0E9PSIsIm1hYyI6IjFhMmRhOGUwN2M1YzgwZDY3MmNhNWFhZjJmNjJjZDM5NGEzOGQwZmI3ZDVlMWU1ZTQwODdmZGVlNDJiMjg4OTUiLCJ0YWciOiIifQ%3D%3D"

Image

Zzackllack avatar Mar 23 '26 16:03 Zzackllack

I have added captcha handling that automatically solves it using a Playwright instance when it is detected.

This only runs if the static fetch using the niquests Session could not find the redirect URL to the provider because of the Turnstile captcha.

If you are running this on a server, the captcha currently will not work properly, because in headless mode it usually does not load, and therefore cannot be solved. That is why the browser is shown when a captcha is detected.

To use this functionality, you need to install the optional dependency patchright, which is a patched version of Playwright.

Run these commands to use the captcha handling logic:

pip install patchright
patchright install chromium

Note: For now you need to install from the models branch over GitHub, because this has not been released yet and is still being actively worked on.

phoenixthrush avatar Mar 27 '26 13:03 phoenixthrush

fixed. pls use the newst code base and give it a try

TheMRX13 avatar Mar 31 '26 14:03 TheMRX13