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

Gogoanime url handling is broken

Open D0nnieD4rk0 opened this issue 4 years ago • 32 comments

its probably since they've got a new domain "gogoanime.wiki" instead of the old gogoanime.vc

D0nnieD4rk0 avatar Dec 27 '21 18:12 D0nnieD4rk0

Same problem on arch. And no, this is not the problem, you can change it.

nano /usr/bin/ani-cli

sqrt0x avatar Dec 27 '21 18:12 sqrt0x

I have the same issue I tried to edit the scripts and add the following to try to resolve it.

# base_url="https://www1.gogoanime.cm"
# base_url="https://www1.gogoanime.wiki"
base_url="https://www2.gogoanime.cm"

None of these domains worked or open the mpv on ARCH as well

helcone avatar Dec 27 '21 18:12 helcone

Seems gogoanime changed something that handles the urls, look #217

NWJ9PB avatar Dec 28 '21 02:12 NWJ9PB

same here it shows the list but not opening mpv or even downloading anything. does anyone know if the windows version works

Anarchyserver avatar Dec 28 '21 05:12 Anarchyserver

I am on arch and it doesn't work for me anymore

VG08 avatar Dec 28 '21 08:12 VG08

I am on arch and it doesn't work for me anymore

I think it's a problem with gogoanime and not the os anyone is using.

Anarchyserver avatar Dec 28 '21 08:12 Anarchyserver

I am on arch and it doesn't work for me anymore

I think it's a problem with gogoanime and not the os anyone is using.

Exactly.

Rendevior avatar Dec 28 '21 09:12 Rendevior

Ik it's prolly not the os but was just telling ( i didn't do it to flex arch)

VG08 avatar Dec 28 '21 11:12 VG08

the link that ani-cli try to play is the issue i think ~~for example this is for death note ep1 i printed the link the ani-cli runs and tried it in terminal ~~

~~$ mpv https://gogoplay1.com/embedplus?id=MTA2MjQ=&token=KomJxMnGpzfYdsFUuorWoQ&expires=1640695796~~

~~ytdl_hook] ERROR: Unsupported URL: https://gogoplay1.com/embedplus?id=MTA2MjQ=&token=KomJxMnGpzfYdsFUuorWoQ&expires=1640695796 [ytdl_hook] youtube-dl failed: unexpected error ocurred Failed to recognize file format.~~

i was wrong in this above part i think the issue is with video_url variable which is getting null when called in get_links ()

but the sub links on the download page works well with mpv
https://gogoplay1.com/download?id=MTA2MjQ=&typesub=Gogoanime-SUB&title=Death+Note+Episode+1

eg $mpv https://lb.loadfast1.com/cdn5/92bd0b67e03416084ffd8bb811b736ff/EP.1.v0.1639176238.720p.mp4?mac=b2u7upX79YizsqMx8XZae9l51fRvL8Q7BjsN0bP7gKk%3D&expiry=1640701756040

ashwin-r-k avatar Dec 28 '21 12:12 ashwin-r-k

the link that ani-cli try to play is the issue i think for example this is for death note ep1 i printed the link the ani-cli runs and tried it in terminal

$ mpv https://gogoplay1.com/embedplus?id=MTA2MjQ=&token=KomJxMnGpzfYdsFUuorWoQ&expires=1640695796

ytdl_hook] ERROR: Unsupported URL: https://gogoplay1.com/embedplus?id=MTA2MjQ=&token=KomJxMnGpzfYdsFUuorWoQ&expires=1640695796 [ytdl_hook] youtube-dl failed: unexpected error ocurred Failed to recognize file format.

but the sub links on the download page works well with mpv https://gogoplay1.com/download?id=MTA2MjQ=&typesub=Gogoanime-SUB&title=Death+Note+Episode+1

eg $mpv https://lb.loadfast1.com/cdn5/92bd0b67e03416084ffd8bb811b736ff/EP.1.v0.1639176238.720p.mp4?mac=b2u7upX79YizsqMx8XZae9l51fRvL8Q7BjsN0bP7gKk%3D&expiry=1640701756040

correct me if im wrong but what ur trying to say is that gogoanime changed it so that the links that the tool connects to for playing anime are changed so the tool trying to connect to the old ones does not work

Anarchyserver avatar Dec 28 '21 13:12 Anarchyserver

Ik it's prolly not the os but was just telling ( i didn't do it to flex arch)

I tried with a Ubuntu based OS and a Arch based OS and can confirm menu shows up but mpv doesn't start up.

Partha2003 avatar Dec 28 '21 14:12 Partha2003

I have the same issue I tried to edit the scripts and add the following to try to resolve it.

# base_url="https://www1.gogoanime.cm"
# base_url="https://www1.gogoanime.wiki"
base_url="https://www2.gogoanime.cm"

None of these domains worked or open the mpv on ARCH as well

Could you please also try these?

https://gogoanime.nl/home https://gogoanime.nl

Partha2003 avatar Dec 28 '21 14:12 Partha2003

I have the same issue I tried to edit the scripts and add the following to try to resolve it.

# base_url="https://www1.gogoanime.cm"
# base_url="https://www1.gogoanime.wiki"
base_url="https://www2.gogoanime.cm"

None of these domains worked or open the mpv on ARCH as well

It's https://gogoanime.wiki And if that doesn't work.. maybe ur ISP is blocking it..

CoolnsX avatar Dec 28 '21 18:12 CoolnsX

still nothing the downloads fail too, also the actual gogoanime site is not blocked for me so i doubt that its the case

Anarchyserver avatar Dec 28 '21 20:12 Anarchyserver

Could this perhaps be fixed by editing the get_links () { section of the script?

correct me if im wrong but what ur trying to say is that gogoanime changed it so that the links that the tool connects to for playing anime are changed so the tool trying to connect to the old ones does not work

In that case we have to find the source for the new m3u8 stream links

B3HOID avatar Dec 28 '21 20:12 B3HOID

yes the issues seems to be within get_links() (it returns nothing). ive added a bunch of printfs into it and it seems to stop executing after the curl command (which works if you run it manually) (im neither expierenced with posix nor this script) - the links are still there in a list, but when i tried to manually open them (with referrer) it dosnt work as well (maybe i ended up with a bad one, but i thought at least one of the 6 mirrors should still be up)

edit: it seems as if the sources list is no longer prefixed with "sources" - the new (?) format:

    <ul class="list-server-items">
                <li class="active linkserver"  data-status="0" data-video="">Vidstreaming</li>
                                <li class="linkserver" data-status="1" data-video="https://****">****</li>
                                <li class="linkserver" data-status="1" data-video="https://****">****</li>
                                <li class="linkserver" data-status="1" data-video="https://****">****</li>
                            </ul>

(links and platformanes replaced with ****)

ghost avatar Dec 28 '21 21:12 ghost

#209 just made a temporary fix, feel free to test it out and identify the error

RaynardGerraldo avatar Dec 28 '21 21:12 RaynardGerraldo

#209 just made a temporary fix, feel free to test it out and identify the error

The comment by Kungger-git?

Partha2003 avatar Dec 29 '21 03:12 Partha2003

Yup, searches just fine for me but doesn't end up opening mpv.

WubzyGD avatar Dec 29 '21 04:12 WubzyGD

#209 just made a temporary fix, feel free to test it out and identify the error

The comment by Kungger-git?

No,look at the commits

RaynardGerraldo avatar Dec 29 '21 04:12 RaynardGerraldo