krishnenduroy52 / Dejavu-API

A API to watch movies, anime, web series, and TV shows.
https://dejavumov.vercel.app/
MIT License
6 stars 5 forks source link

scrape video URL from sflix.is & decrypt #1

Open krishnenduroy52 opened 1 year ago

krishnenduroy52 commented 1 year ago

Problem

Due to debugger unable to find the sourceURL & decrypt

Possible Solution EXAMPLE:

const fetchVideo = async () => {
  const { data } = await axios.get(
    "https://megacloud.tv/embed-1/ajax/e-1/getSources?id=9JXCOiGwpL8b", // The link may be invalid.
    {
      headers: {
        "x-requested-with": "XMLHttpRequest",
        Referer: "https://megacloud.tv/embed-1/e-1/9JXCOiGwpL8b?z=", // The link may be invalid.
      },
    }
  );
  return data;
};

After this, you will receive an encrypted source string, and you will need to decrypt it.