pystardust / ani-cli

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

Gogoanime url handling is broken #221

Closed D0nnieD4rk0 closed 2 years ago

D0nnieD4rk0 commented 2 years ago

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

FatSquare commented 2 years ago

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

nano /usr/bin/ani-cli
helcone commented 2 years ago

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

NWJ9PB commented 2 years ago

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

Anarchyserver commented 2 years ago

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

VG08 commented 2 years ago

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

Anarchyserver commented 2 years ago

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.

Rendevior commented 2 years ago

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.

VG08 commented 2 years ago

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

ashwin-r-k commented 2 years ago

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

Anarchyserver commented 2 years ago

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

Partha2003 commented 2 years ago

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

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

CoolnsX commented 2 years ago

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

Anarchyserver commented 2 years ago

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

B3HOID commented 2 years ago

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

Jan9103 commented 2 years ago

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 ****)

RaynardGerraldo commented 2 years ago

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

Partha2003 commented 2 years ago

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

The comment by Kungger-git?

WubzyGD commented 2 years ago

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

RaynardGerraldo commented 2 years ago

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

port19x commented 2 years ago

219 is related to this

port19x commented 2 years ago

There seem to be a lot of open issues boiling down to this same problem. If I mistakenly closed your issue and your confident your problem is not caused by gogoanime url parsing, please reopen it

WubzyGD commented 2 years ago

@ura43 is there a fix or...

sdaqo commented 2 years ago

@ura43 is there a fix or...

As mentioned in my comment, gogoanime completely changed the way it works. My workaround in my script is done with Selenium, a tool to automate browsing websites, it utilizes the webdriver from a browser of choice. There even is a implementation for Bash, so it can be fixed, if someone does it.

WubzyGD commented 2 years ago

@ura43 is there a fix or...

As mentioned in my comment, gogoanime completely changed the way it works. My workaround in my script is done with Selenium, a tool to automate browsing websites, it utilizes the webdriver from a browser of choice. There even is a implementation for Bash, so it can be fixed, if someone does it.

I shall install yours for now then, thank you

Fmert24 commented 2 years ago

@ura43 is there a fix or...

https://github.com/pystardust/ani-cli/commit/5a0261126682295387977509066f8a6f0ead30f3

port19x commented 2 years ago

Great to see such a high activity here. This will probably be fixed sometime next week. The problem right now is that we have 10 versions of the same issue open and probably 5 fixes that would fix all of them. Coordinating the right fix will be a challenge

port19x commented 2 years ago

@ura43 is there a fix or...

As mentioned in my comment, gogoanime completely changed the way it works. My workaround in my script is done with Selenium, a tool to automate browsing websites, it utilizes the webdriver from a browser of choice. There even is a implementation for Bash, so it can be fixed, if someone does it.

Do you think reffering our users to gogoanime clones is a viable solution? Implementing a workaround using a headless browser seems more involved than it should be, so this would be a last resort

sdaqo commented 2 years ago

Do you think reffering our users to gogoanime clones is a viable solution? Implementing a workaround using a headless browser seems more involved than it should be, so this would be a last resort

So I don't really know a lot of anime sites since I mainly torrent anime to watch them, but if finding a clone and implementing a script so that it works isn't a pain, it would be a viable solution to the problem.

port19x commented 2 years ago

PR 209 should solve this issue and #227 with it

port19x commented 2 years ago

~PR 209 didn't solve the issue for me. Tested on debian unstable, wanted to watch flcl progressive ep 1~

One Piece works, meaning the issue I encountered with flcl progressive was due to #202 Means this PR is 2x confirmed working

port19x commented 2 years ago

This should now be resolved. Tested playing one piece on debian unstable