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

cannot reach servers

Open GekkoinenGittiAcco opened this issue 4 years ago • 35 comments

Kuvakaappaus 2022-01-03 23-32-08

GekkoinenGittiAcco avatar Jan 03 '22 21:01 GekkoinenGittiAcco

I just got the same error.

mazylol avatar Jan 03 '22 21:01 mazylol

same

kaumidere avatar Jan 03 '22 22:01 kaumidere

Having the same error.

Gokurockx9 avatar Jan 03 '22 22:01 Gokurockx9

same

Tiggax avatar Jan 03 '22 22:01 Tiggax

I'm getting a 403: Forbidden when trying to hook the video directly to mpv. Seems like it may require an API key now...

demrich avatar Jan 03 '22 22:01 demrich

OK, so I got the error to go by following Dink4n's QA branch and merging master into qa, this stopped the "Cannot reach servers!" but no luck in mpv playing anything. Am hoping it's as simple as a line of code out of place but if demrich is right I'm SOL.

Cricketjds3 avatar Jan 04 '22 00:01 Cricketjds3

Could search episodes, used download command but then got this: image note: maybe the function on lines 332-380

4cecoder avatar Jan 04 '22 00:01 4cecoder

Got the same error . curl: (3) URL using bad/illegal format or missing Url

Yeashu avatar Jan 04 '22 01:01 Yeashu

phew, i thought i am the only one who have this error

hithere-at avatar Jan 04 '22 02:01 hithere-at

i got the same error xd

socrammatias avatar Jan 04 '22 02:01 socrammatias

This might be potentially broken by #209 because the referrer is missing. However, I am not very sure. https://github.com/pystardust/ani-cli/blob/97596b56ac9bfbd1b3246cf7ef90b3293f35e60b/ani-cli#L362 By using the download url as referrer and adding --http-referrer=$referrer, it may fix this issue. Again, I don't know how ani-cli works at the moment.

HenryQuan avatar Jan 04 '22 02:01 HenryQuan

like @HenryQuan said, yes, it needs to have --referer again to work, but it is now opening the videos really slow, because the current link available in gogoanime download page is a download stream https://gogo-cdn.com/download.php?url=aHR0cHM6LyAdeqwrwedffryretgsdFrsftrsvfsfsr9jZG4zNCURASDGHUSRFSJGYfdsffsderFStewthsfSFtrftesdf5hbmljZG4uc3RyZWFtL3VzZXIxMzQyLzFjN2QzMjI2NDc0Yjg2ODQ5ZTcxY2Y4NzI4YmNlOGFmL0VQLjEyLnYwLjE2NDEyMjYwODIuMzYwcC5tcDQ/dG9rZW49S1dkZm50UFdKMFJYRTJKZE5pQ3VMdyZleHBpcmVzPTE2NDEyNzk3NjAmaWQ9MTc3NTUz

The actual video link is hidden in this download stream,which if accessed will return 403 forbidden https://cdn34.anicdn.stream/user1342/1c7d3226474b86849e71cf8728bce8af/EP.12.v0.1641226082.360p.mp4?token=RRtgLqhiJOLDtBEXEn-0Uw&expires=1641278260&id=177553 , i tried using a referer, it still returns 403 forbidden

RaynardGerraldo avatar Jan 04 '22 03:01 RaynardGerraldo

Fixed in the latest commit. Can you try to use it now?

Dink4n avatar Jan 04 '22 03:01 Dink4n

Fixed in the latest commit. Can you try to use it now?

its playing really slow for me, how about you?

RaynardGerraldo avatar Jan 04 '22 03:01 RaynardGerraldo

download is not working.

Yeashu avatar Jan 04 '22 03:01 Yeashu

same here, download doesnt work properly

hithere-at avatar Jan 04 '22 03:01 hithere-at

Fixed in the latest commit. Can you try to use it now?

its playing really slow for me, how about you?

Same here. It is really slow.

ypo777 avatar Jan 04 '22 03:01 ypo777

adding -e "$dpage_link" to the curl command fixes downloads. Really slow though even for small file like isekai quartet.

curl -L -# -C - -e "$dpage_link" "$video_url" -o "${anime_id}-${episode}.mp4" &&

ksyasuda avatar Jan 04 '22 04:01 ksyasuda

@RaynardGerraldo I am using a different gogoanime fork and it works for me. This is my implementation. I am not so sure how ani-cli is getting the link. I am doing a simple replace of the streaming link to get the download link and then, I parse links from it. However, it is a little bit slower now. It was almost instant when it is streaming. Now, it takes a few seconds before it could load the video.

HenryQuan avatar Jan 04 '22 04:01 HenryQuan

adding -e "$dpage_link" to the curl command fixes downloads. Really slow though even for small file like isekai quartet.

curl -L -# -C - -e "$dpage_link" "$video_url" -o "${anime_id}-${episode}.mp4" &&

-e "$dpage_link"

this is the same approach as playing a video, and both are moving really slowly, they might have did something to limit the bandwidth

RaynardGerraldo avatar Jan 04 '22 04:01 RaynardGerraldo