Skip to content

fix: switch API requests to POST to bypass Cloudflare challenge#1632

Open
woolw wants to merge 3 commits intopystardust:masterfrom
woolw:master
Open

fix: switch API requests to POST to bypass Cloudflare challenge#1632
woolw wants to merge 3 commits intopystardust:masterfrom
woolw:master

Conversation

@woolw
Copy link
Copy Markdown

@woolw woolw commented Apr 5, 2026

Pull Request Template

Type of change

  • Bug fix
  • Feature
  • Documentation update

Description

api.allanime.day added Cloudflare JS challenge blocking GET requests. All three GraphQL queries now use POST with JSON body instead.

thanks claude

Checklist

  • any anime playing
  • bumped version

  • next, prev and replay work
  • -c history and continue work
  • -d downloads work
  • -s syncplay works
  • -q quality works
  • -v vlc works
  • -e (select episode) aka -r (range selection) works
  • -S select index works
  • --skip ani-skip works
  • --skip-title ani-skip title argument works
  • --no-detach no detach works
  • --exit-after-play auto exit after playing works
  • --nextep-countdown countdown to next ep works
  • --dub and regular (sub) mode both work
  • all providers return links (not necessarily on a single anime, use debug mode to confirm)

  • -h help info is up to date
  • Readme is up to date
  • Man page is up to date

Additional Testcases

  • The safe bet: One Piece
  • Episode 0: Saenai Heroine no Sodatekata ♭
  • Unicode: Saenai Heroine no Sodatekata ♭
  • Non-whole episodes: Tensei shitara slime datta ken (ep. 24.5, ep. 24.9)
  • All Providers: Youkoso Jitsuryoku Shijou Shugi no Kyoushitsu e (TV) (3 m3u8, 3 mp4, 1 fast4speed, 1 sharepoint)
  • The examples of the help text

woolw added 2 commits April 5, 2026 15:26
api.allanime.day added Cloudflare JS challenge blocking GET requests.
All three GraphQL queries now use POST with JSON body instead.
@woolw woolw requested a review from Derisis13 as a code owner April 5, 2026 13:28
@71zenith 71zenith linked an issue Apr 5, 2026 that may be closed by this pull request
@71zenith
Copy link
Copy Markdown
Collaborator

71zenith commented Apr 5, 2026

Can confirm to be working. Thanks for the quick fix.
We should let it simmer for a while before committing and probably make this a 4.11 release.

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

Successfully merging this pull request may close these issues.

Always errors out with "Results not found"

2 participants