pystardust / ani-cli

A cli tool to browse and play anime
GNU General Public License v3.0
7.92k stars 543 forks source link

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

Closed Almo7aya closed 2 years ago

Almo7aya commented 3 years ago

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
supersuryaansh commented 3 years ago

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.

Almo7aya commented 3 years ago

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

supersuryaansh commented 3 years ago

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

supersuryaansh commented 3 years ago

Yes it worked, thank you

Dink4n commented 3 years ago

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

Almo7aya commented 3 years ago

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

CoolnsX commented 3 years ago

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