fix: update api_resp req including query_hash and origin, and add filemoon provider#1691
Conversation
The Allanime API changed encryption on 2026-04-22. - Base key: SimtVuagFbGR2K7P -> Xot36i3lK3:v1 (now includes ":v1" suffix, derived via SHA-256) - Blob format: [version:1][IV:12][ciphertext][auth_tag:16] (was: [IV:12][plaintext] — version byte was skipped) - Ciphertext length: explicit ct_len = file_size - 13 - 16 (was: read entire rest, including GCM auth tag) - Version bump: 4.12.0 -> 4.13.0
|
ig #1690 was first with the referrer fix, so maybe we can just close that pr and add him as co-author here |
|
More than 650 lines... (cries quietly) |
|
Do check this pull request please #justchokingaround/pull/11 |
|
I just tested the latest diff of this PR (+65 -5) against v4.13.0 on NixOS and it works perfectly. Thank you for the fix! |
|
Did not work on termux, not even old stuff. |
Derisis13
left a comment
There was a problem hiding this comment.
Please remove the unnecessary shellcheck disable statements, then you're clear for a merge. Termux not working is a casualty we can take for now, as it works on linux (I suspect referrer-free links were purged for good).
|
Actually, there's another unused ignore at line 486, please remove that as well if you're at it |
Actually, now that I look into it, yt is the only type of link we get. I suppose that's a problem, but may be adressable by a minor version? |
Apply PR pystardust#1691 hunk targeting get_episode_url. AllAnime API started returning NEED_CAPTCHA on plain POST queries. Switch primary request to GET with persistedQuery hash and Origin header, fall back to original POST if response lacks tobeparsed.
Derisis13
left a comment
There was a problem hiding this comment.
Still seems to be only getting Yt links, but better than nothing
|
Now returns sharepoint links as well making it usable on termux. |
Pull Request Template
Type of change
Description
ramble here
Checklist
-chistory and continue work-ddownloads work-ssyncplay works-qquality works-vvlc works-e(select episode) aka-r(range selection) works-Sselect index works--skipani-skip works--skip-titleani-skip title argument works--no-detachno detach works--exit-after-playauto exit after playing works--nextep-countdowncountdown to next ep works--duband regular (sub) mode both work-hhelp info is up to dateAdditional Testcases