pystardust / ani-cli

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

cannot reach servers #282

Closed GekkoinenGittiAcco closed 2 years ago

GekkoinenGittiAcco commented 2 years ago

Kuvakaappaus 2022-01-03 23-32-08

mazylol commented 2 years ago

I just got the same error.

kaumidere commented 2 years ago

same

Gokurockx9 commented 2 years ago

Having the same error.

Tiggax commented 2 years ago

same

demrich commented 2 years ago

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

Cricketjds3 commented 2 years ago

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.

4cecoder commented 2 years ago

Could search episodes, used download command but then got this:

image

note: maybe the function on lines 332-380

Yeashu commented 2 years ago

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

hithere-at commented 2 years ago

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

socrammatias commented 2 years ago

i got the same error xd

HenryQuan commented 2 years ago

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.

RaynardGerraldo commented 2 years ago

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

Dink4n commented 2 years ago

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

RaynardGerraldo commented 2 years ago

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

its playing really slow for me, how about you?

Yeashu commented 2 years ago

download is not working.

hithere-at commented 2 years ago

same here, download doesnt work properly

ypo777 commented 2 years ago

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.

ksyasuda commented 2 years ago

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" &&

HenryQuan commented 2 years ago

@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.

RaynardGerraldo commented 2 years ago

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 commented 2 years ago

@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.

does it play slow too? the method you mentioned is also what we are using

Dink4n commented 2 years ago

Fixed downloading and increased speed in the latest commit. Try to use it now

HenryQuan commented 2 years ago

@RaynardGerraldo By slow, do you mean it is slow for VLC to load or it is slow while streaming (like taking time to load). As I said, it is slower while loading the video (about 2 - 6 seconds, was instant). For 1080P videos, it does lag once a while so I started using 720P and it works fine.

RaynardGerraldo commented 2 years ago

Fixed downloading and increased speed in the latest commit. Try to use it now

downloading still moving at 0.1 % per second for me, but i just tried using aria2c and it speeds it up, not as fast as a couple of days ago tho

HenryQuan commented 2 years ago

I tried downloading from the website and it was like 400kb/s (maybe this is why it lags on 1080P). Now, it is a bit faster around 1mb - 2mb per second. Maybe, this is a problem of the streaming website since there are more people using it.

port19x commented 2 years ago

Please check if PR #290 solves the issues

GekkoinenGittiAcco commented 2 years ago

Kuvakaappaus 2022-01-03 23-32-08

it started to work for me after doing git clone again, though its kinda laggy.

RaynardGerraldo commented 2 years ago

can anyone help me confirm that streaming is slow?

port19x commented 2 years ago

can anyone help me confirm that streaming is slow?

Slower than usual

CoolnsX commented 2 years ago

It will be like that now... in streaming we can't do anything... But in downloading we should switch to aria2c.. atleast it's download speed is better than curl..

I know it will be adding another program as dependency..

RaynardGerraldo commented 2 years ago

Yea i think because the direct link for the videos that we have right now is a download stream,its streaming at a downloading pace, and btw the vidstreamingcdn link that we used to stream is still there and its fast as ever but havent found a way to access it yet

CoolnsX commented 2 years ago

Yea i think because the direct link for the videos that we have right now is a download stream,its streaming at a downloading pace, and btw the vidstreamingcdn link that we used to stream is still there and its fast as ever but havent found a way to access it yet

can you mention in which anime are you getting vidstreamingcdn.. I want to check it myself..

RaynardGerraldo commented 2 years ago

Yea i think because the direct link for the videos that we have right now is a download stream,its streaming at a downloading pace, and btw the vidstreamingcdn link that we used to stream is still there and its fast as ever but havent found a way to access it yet

can you mention in which anime are you getting vidstreamingcdn.. I want to check it myself..

I used Dragon ball to test that

lunicarus commented 2 years ago

it stopped to work again my friends

port19x commented 2 years ago

it stopped to work again my friends

Yep, it's being tracked in #560