Commit cade561
committed
fix(download): set Referer for AnimeFire CDN (lightspeedst.net)
lightspeedst.net, the CDN used by AnimeFire, returns 401 Unauthorized on
token-signed requests when the Referer header is absent. The batch download
path called downloadDirectHTTP without ever setting the global referer for
AnimeFire sources, since the AnimeFire scraper does not call SetGlobalReferer.
Guard: only set the referer when none is already active so other sources
are not affected.
Fixes: "The Angel Next Door Spoils Me Rotten" (and any AnimeFire anime)
failing to download with HTTP 401 Unauthorized in batch mode.1 parent f6f801e commit cade561
1 file changed
Lines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
377 | 377 | | |
378 | 378 | | |
379 | 379 | | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
380 | 385 | | |
381 | 386 | | |
382 | 387 | | |
| |||
0 commit comments