consumet / api.consumet.org

A Modern Search Engine API for Anime, Movies/TVShows, Books, Light Novels, Manga, etc.
https://docs.consumet.org
GNU General Public License v3.0
1.18k stars 536 forks source link

Gogoanime Get Streaming Links 404 #533

Closed izulwahidin closed 12 months ago

izulwahidin commented 12 months ago

Describe the bug

Gogoanime return status code 404 on all query to get Streaming Links

Steps to reproduce

curl https://w-consumet-api.vercel.app/anime/gogoanime/watch/spy-x-family-episode-1 or curl https://api.consumet.org//anime/gogoanime/watch/spy-x-family-episode-1

Expected behavior

{ "headers": { "Referer": "string", "watchsb": "string", // or null, since only provided with server being equal to "streamsb". "User-Agent": "string" // or null }, "sources": [ { "url": "string", "quality": "string", "isM3U8": true } ] }

Actual behavior

"message": {}

Additional context

No response

carlosesteven commented 12 months ago

@izulwahidin The cause of that problem is that today gogoanime changed its main domain to: https://anitaku.to.

You can solve this problem by changing the domain here: https://github.com/carlosesteven/consumet.ts/blob/master/src/providers/anime/gogoanime.ts#L23

My copy of the repository: https://github.com/carlosesteven/api.consumet.org/

Test: https://api-consumet-3lqsgk5t7-carlosesteven.vercel.app/anime/gogoanime/watch/spy-x-family-episode-1

shibotto commented 12 months ago

It is fairly hit and miss for now. At the moment it's working for me, but I've been greeted all day by a cloudflare broken host message on anitaku.to/home.

riimuru commented 12 months ago

@izulwahidin This issue has been fixed as of https://github.com/consumet/consumet.ts/commit/41242b46c7c7a8a1eb12bcbe551001c784313e0a. Make sure that you're self-hosting the API & update the dependencies on api.consumet.org to stay up to date with the consumet.ts code. Thank you for your report!