Update egydead (Fasel reuploader)/egydead.js

This commit is contained in:
aka paul 2025-11-02 15:53:31 +00:00
parent 12e448e649
commit 9e9884328c

View file

@ -72,6 +72,7 @@ async function extractEpisodes(url) {
}]); }]);
} }
} }
async function extractStreamUrl(url) { async function extractStreamUrl(url) {
try { try {
const response = await fetchv2(url); const response = await fetchv2(url);
@ -85,7 +86,7 @@ async function extractStreamUrl(url) {
const serversJson = jsonMatch[1].replace(/\\/g, ''); const serversJson = jsonMatch[1].replace(/\\/g, '');
const servers = JSON.parse(serversJson); const servers = JSON.parse(serversJson);
const fdewsdcServer = servers.find(server => server.name === "fdewsdc"); const fdewsdcServer = servers.find(server => server.name === "EarnVids");
if (fdewsdcServer) { if (fdewsdcServer) {
console.log("Stream URL: " + fdewsdcServer.url); console.log("Stream URL: " + fdewsdcServer.url);
return await extractEarnVids(fdewsdcServer.url); return await extractEarnVids(fdewsdcServer.url);
@ -97,8 +98,12 @@ async function extractStreamUrl(url) {
} }
async function extractEarnVids(url) { async function extractEarnVids(url) {
const headers = {
"Referer": "https://shahed4u.day/",
"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/"
};
try { try {
const response = await fetchv2(url); const response = await fetchv2(url, headers);
const html = await response.text(); const html = await response.text();
const obfuscatedScript = html.match(/<script[^>]*>\s*(eval\(function\(p,a,c,k,e,d.*?\)[\s\S]*?)<\/script>/); const obfuscatedScript = html.match(/<script[^>]*>\s*(eval\(function\(p,a,c,k,e,d.*?\)[\s\S]*?)<\/script>/);