consumet / consumet.ts

Nodejs library that provides high-level APIs for obtaining information on various entertainment media such as books, movies, comic books, anime, manga, and so on.
https://consumet.org/extensions/list/
GNU General Public License v3.0
409 stars 226 forks source link

fetchEpisodeSources returns 522 #541

Closed eyalmazuz closed 2 weeks ago

eyalmazuz commented 4 months ago

Describe the bug

Trying to fetch movies from various provisers fail

Steps to reproduce

running the example from MoviesHD

same goes for FlixHQ and Goku

import { MOVIES, ANIME } from "@consumet/extensions"

const flixhq = new MOVIES.FlixHQ();
const moviesHd = new MOVIES.MovieHdWatch();
const goku = new MOVIES.Goku();

moviesHd.fetchEpisodeSources('16076', 'movie/watch-the-batman-online-16076', 'upcloud').then(data => {
  console.log(data);
}).catch(err => {
    console.log(err);
})

Expected behavior

should return

{
  headers: { Referer: 'https://dokicloud.one/embed-4/3F3nysmdRDMF?z=' },
  sources: [
    {
      url: 'https://eno.dokicloud.one/_v10/fd5de830b89416820504ffef6b23be58878b11bc91d26f99a884f7d4c0dc7c4c500b6ce5d53054d705a74628a3b34208a95bf0d5663142027d6284e4ce2424b9a8cbe9241fb0054f352fcf4d797b2af0fec364a840a38d0d1d3a340c564ad89bb1fecb219076d813667da0ad13266f8a589df412b39bcc03c7c07dc5bfe401c2601ce19dd9530fac08c20fc89104a5d0/1080/index.m3u8',
      quality: '1080',
      isM3U8: true
    },
.....
    }
  ],
  subtitles: [
    {
      url: 'https://cc.2cdns.com/85/ca/85ca0405b2fc0f1f3edacf13e84a9277/85ca0405b2fc0f1f3edacf13e84a9277.vtt',
      lang: 'Arabic'
    },
    {
      url: 'https://cc.2cdns.com/9c/19/9c19c8fceb977034e8ef86bba8ec161e/9c19c8fceb977034e8ef86bba8ec161e.vtt',
      lang: 'Danish'
    },
    {
      url: 'https://cc.2cdns.com/c7/7f/c77fc58f1848b61b665e7de01f298223/eng-2.vtt',
      lang: 'English'
    },
.....
    }
  ]
}

Actual behavior

213 |                 const serverUrl = new URL(servers.filter(s => s.name.toLowerCase() === server.toLowerCase())[0].url);
214 |                 console.log(serverUrl)
215 |                 return await this.fetchEpisodeSources(serverUrl.href, mediaId, server);
216 |             }
217 |             catch (err) {
218 |                 throw new Error(err.message);
                            ^
error: Request failed with status code 522
      at /home/eyal/node_modules/@consumet/extensions/dist/providers/movies/movidhdwatch.js:218:23

Additional context

No response

sarahyunitafv commented 3 months ago

still can be fixed??

stale[bot] commented 1 month ago

We're marking this issue as wontfix because it has not had recent activity. It will be closed if no further activity occurs within the next 30 days. Thank you for your contributions.

stale[bot] commented 2 weeks ago

We are closing this issue. If the issue still persists in the latest version of consumet.ts, please reopen the issue and update the description. We will try our best to accomodate it!