forked from 50n50/sources
Update videasy/videasy.js
This commit is contained in:
+5
-5
@@ -194,7 +194,7 @@ async function extractStreamUrl(ID) {
|
||||
const imdbId = cinebyData.external_ids?.imdb_id || '';
|
||||
const tmdbId = cinebyData.id;
|
||||
|
||||
const fullUrl = `https://api.videasy.net/myflixerzupcloud/sources-with-title?title=${title}&mediaType=movie&year=${year}&episodeId=1&seasonId=1&tmdbId=${tmdbId}&imdbId=${imdbId}`;
|
||||
const fullUrl = `https://api.videasy.net/cdn/sources-with-title?title=${title}&mediaType=movie&year=${year}&episodeId=1&seasonId=1&tmdbId=${tmdbId}&imdbId=${imdbId}`;
|
||||
|
||||
console.log('Full URL:' + fullUrl);
|
||||
|
||||
@@ -209,9 +209,9 @@ async function extractStreamUrl(ID) {
|
||||
|
||||
const postData = JSON.stringify({
|
||||
text: encrypted,
|
||||
id: tmdbID
|
||||
id: tmdbID.split('-')[0]
|
||||
});
|
||||
|
||||
console.log('Post Data:' + postData);
|
||||
const decryptedResponse = await fetchv2("https://enc-dec.app/api/dec-videasy", headers, "POST", postData);
|
||||
const decryptedData = await decryptedResponse.json();
|
||||
console.log('Decrypted Data:' + JSON.stringify(decryptedData));
|
||||
@@ -253,7 +253,7 @@ async function extractStreamUrl(ID) {
|
||||
const imdbId = cinebyData.external_ids?.imdb_id || '';
|
||||
const tmdbId = cinebyData.id;
|
||||
|
||||
const fullUrl = `https://api.videasy.net/myflixerzupcloud/sources-with-title?title=${title}&mediaType=tv&year=${year}&episodeId=${episodeNumber}&seasonId=${seasonNumber}&tmdbId=${tmdbId}&imdbId=${imdbId}`;
|
||||
const fullUrl = `https://api.videasy.net/cdn/sources-with-title?title=${title}&mediaType=tv&year=${year}&episodeId=${episodeNumber}&seasonId=${seasonNumber}&tmdbId=${tmdbId}&imdbId=${imdbId}`;
|
||||
|
||||
console.log('Full URL:' + fullUrl);
|
||||
|
||||
@@ -268,7 +268,7 @@ async function extractStreamUrl(ID) {
|
||||
|
||||
const postData = JSON.stringify({
|
||||
text: encrypted,
|
||||
id: tmdbID
|
||||
id: tmdbID.split('-')[0]
|
||||
});
|
||||
|
||||
const decryptedResponse = await fetchv2("https://enc-dec.app/api/dec-videasy", headers, "POST", postData);
|
||||
|
||||
Reference in New Issue
Block a user