mirror of
https://git.luna-app.eu/50n50/sources
synced 2025-12-21 21:26:19 +01:00
Update egydead (Fasel reuploader)/egydead.js
This commit is contained in:
parent
12e448e649
commit
9e9884328c
1 changed files with 7 additions and 2 deletions
|
|
@ -72,6 +72,7 @@ async function extractEpisodes(url) {
|
|||
}]);
|
||||
}
|
||||
}
|
||||
|
||||
async function extractStreamUrl(url) {
|
||||
try {
|
||||
const response = await fetchv2(url);
|
||||
|
|
@ -85,7 +86,7 @@ async function extractStreamUrl(url) {
|
|||
const serversJson = jsonMatch[1].replace(/\\/g, '');
|
||||
const servers = JSON.parse(serversJson);
|
||||
|
||||
const fdewsdcServer = servers.find(server => server.name === "fdewsdc");
|
||||
const fdewsdcServer = servers.find(server => server.name === "EarnVids");
|
||||
if (fdewsdcServer) {
|
||||
console.log("Stream URL: " + fdewsdcServer.url);
|
||||
return await extractEarnVids(fdewsdcServer.url);
|
||||
|
|
@ -97,8 +98,12 @@ async function extractStreamUrl(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 {
|
||||
const response = await fetchv2(url);
|
||||
const response = await fetchv2(url, headers);
|
||||
const html = await response.text();
|
||||
|
||||
const obfuscatedScript = html.match(/<script[^>]*>\s*(eval\(function\(p,a,c,k,e,d.*?\)[\s\S]*?)<\/script>/);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue