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
992 stars 434 forks source link

[Invalid Server] Gogo Anime alt servers #607

Open techroy23 opened 2 months ago

techroy23 commented 2 months ago

Describe the bug

Error : Invalid server when using ?server=Streamwish or any alt sever even if it is present here [ENPOINT]/anime/gogoanime/servers/boruto-naruto-next-generations-episode-1

Steps to reproduce

1.) open https://localhost:3000/anime/gogoanime/servers/boruto-naruto-next-generations-episode-1

2.) it will generate a JSON output

[
  {
    "name": "Vidstreaming",
    "url": "https://embtaku.pro/streaming.php?id=OTc2MzI=&title=Boruto%3A+Naruto+Next+Generations+Episode+1&typesub=SUB"
  },
  {
    "name": "Gogo server",
    "url": "https://embtaku.pro/embedplus?id=OTc2MzI=&token=Lmgtf7JcM8BvyKnMjzbnXQ&expires=1714315591"
  },
  {
    "name": "Streamwish",
    "url": "https://awish.pro/e/l9c99kl8yrhv"
  },
  {
    "name": "Server Hydrax",
    "url": "https://hydrax.net/watch?v=O1i4Iihhk"
  },
  {
    "name": "Doodstream",
    "url": "https://dood.wf/e/adq9h2xioctf"
  },
  {
    "name": "Vidhide",
    "url": "https://alions.pro/v/vfg99ms15vmj"
  }
]

3.) now when we use https://localhost:3000/anime/gogoanime/watch/boruto-naruto-next-generations-episode-1?server=Vidstreaming we get the output

{
  "headers": {
    "Referer": "https://embtaku.pro/embedplus?id=OTc2MzI=&token=mG5f-5888CDKzFRfZy4k3Q&expires=1714315718"
  },
  "sources": [
    {
      "url": "https://www040.vipanicdn.net/streamhls/38f59662885b758e560d1cbd61698ee2/ep.1.1713858375.360.m3u8",
      "isM3U8": true,
      "quality": "360p"
    },
    {
      "url": "https://www040.vipanicdn.net/streamhls/38f59662885b758e560d1cbd61698ee2/ep.1.1713858375.480.m3u8",
      "isM3U8": true,
      "quality": "480p"
    },
    {
      "url": "https://www040.vipanicdn.net/streamhls/38f59662885b758e560d1cbd61698ee2/ep.1.1713858375.720.m3u8",
      "isM3U8": true,
      "quality": "720p"
    },
    {
      "url": "https://www040.vipanicdn.net/streamhls/38f59662885b758e560d1cbd61698ee2/ep.1.1713858375.1080.m3u8",
      "isM3U8": true,
      "quality": "1080p"
    },
    {
      "url": "https://www040.vipanicdn.net/streamhls/38f59662885b758e560d1cbd61698ee2/ep.1.1713858375.m3u8",
      "isM3U8": true,
      "quality": "default"
    },
    {
      "url": "https://www040.anicdnstream.info/videos/hls/Ft6MOT6atuLtb7zLGZrvFg/1714322919/97632/38f59662885b758e560d1cbd61698ee2/ep.1.1713858375.m3u8",
      "isM3U8": true,
      "quality": "backup"
    }
  ],
  "download": "https://embtaku.pro/download?id=OTc2MzI=&token=mG5f-5888CDKzFRfZy4k3Q&expires=1714315718"
}

however when we change to the other available server https://localhost:3000/anime/gogoanime/watch/boruto-naruto-next-generations-episode-1?server=Doodstream it just show the error

Invalid server

Expected behavior

I expect to have it show the available m3u8 links

Actual behavior

But i get a response "Invalid server"

Additional context

No response