ani-cli icon indicating copy to clipboard operation
ani-cli copied to clipboard

403 Forbidden on www01.anicdn.stream because of missing header

Open Almo7aya opened this issue 5 years ago • 7 comments

Hello, I think gogoanime.vc added some checks to verify the origin of the requests using the Referer header this can easily bypassed by hard-coding the required header value

I edited the line 209 and now it's working fine

setsid -f $player_fn --http-header-fields='Referer: https://streamani.io/' "$video_url" >/dev/null 2>&1

Almo7aya avatar Sep 10 '21 22:09 Almo7aya

Can share your whole ani-cli code, line 211 is not the line that you mentioned also, I tried setup what you said but that did not work either.

supersuryaansh avatar Sep 11 '21 04:09 supersuryaansh

@supersuryaansh Sorry I added useless code above that line so the line number changed, The right line number is 209

Almo7aya avatar Sep 11 '21 09:09 Almo7aya

This does not work either, no mp4 file is returned instead an m3u8 file is returned

supersuryaansh avatar Sep 11 '21 10:09 supersuryaansh

Yes it worked, thank you

supersuryaansh avatar Sep 11 '21 10:09 supersuryaansh

Current videos are of low quality. Previously we fetched HD videos but it's now encrypted You can use the old-ani-cli branch (which seems to be working now) to get High Quality videos

Dink4n avatar Sep 14 '21 06:09 Dink4n

@Dink4n I'm getting HD videos with the fix I mentioned in the issue

Almo7aya avatar Sep 14 '21 07:09 Almo7aya

my fork of ani-cli is working fine and I added support for watching and downloading anime in low quality ( perfect for mobile data users) link

CoolnsX avatar Sep 22 '21 18:09 CoolnsX