Gradleless / vidsrc-bypass

Embed.su, VidSrc.rip, Vidlink.pro and VidSrc.icu bypasser / api wrapper cause why not.
11 stars 5 forks source link

fix problems #6

Closed bugbounted closed 3 weeks ago

bugbounted commented 3 weeks ago

code 1:

import { getVidSrcRipVideo, getVidSrcRipStreamUrl, generateVRF } from './vidsrc-bypass/src';

// Get video configuration (TMDB/IMDB ID)
const videoConfig = await getVidSrcRipVideo('872585');

console.log({ movieVideo });

response 1:

C:\Users\Bugbounted\Desktop\samarstream>bun run test2.js
1 | (function (entry, fetcher)
    ^
SyntaxError: Export named 'generateVRF' not found in module 'C:\Users\Bugbounted\Desktop\samarstream\vidsrc-bypass\src\index.ts'.

code 2:

import { getVidLinkProVideo } from './vidsrc-bypass/src';

(async () => {
  try {
    // For movies (TMDB ID, type)
    const movieVideo = await getVidLinkProVideo({ id: "310131", type: "movie" });

    // Log the movieVideo object to inspect its structure
    console.log('movieVideo:', movieVideo);

    // Final response including full captions and subtitles data
    const response = {
      movieVideo: {
        sourceId: movieVideo.sourceId,
        stream: {
          id: movieVideo.stream.id,
          type: movieVideo.stream.type,
          playlist: movieVideo.stream.playlist,
          flags: movieVideo.stream.flags,
          captions: movieVideo.stream.captions,  // Full captions details
        },
      },
    };

    // Print the full object with captions and subtitles serialized
    console.log(JSON.stringify(response, null, 2));
  } catch (error) {
    console.error('Error fetching movie video:', error);
  }
})();

response 2:

C:\Users\Bugbounted\Desktop\samarstream>bun run test2.js
Error fetching movie video: SyntaxError: Failed to parse JSON

3-vidsrc.icu just only can fetch anime & manga & can't get movie & series & don't have easy usage syntax inside README.md

Gradleless commented 3 weeks ago

Hi, thanks for the warning about vidlink, they had changed their encryption methods.

For the vidsrc.pro test it's normal, it's just a test file, it's written in the file that it's not exported, it's up to you to modify it if you need to do your tests.

For vidsrc.icu I'd like to make the movies and series, the problem is that I've searched and I can't find any series or movie they have. If you have workings IDs for these two I'd be happy ngl

gilbertlucas46 commented 3 weeks ago

Error fetching video details: Forbidden vidlink: undefined

Did the encryption changed again?

Gradleless commented 3 weeks ago

Nah, working on my side. Vidlink often has SSL handshake problems with cloudflare, it can be that. check if you have the new update