update
This commit is contained in:
+17
-7
@@ -89,7 +89,7 @@ async function extractEpisodes(url) {
|
||||
while ((mirrorMatch = mirrorRegex.exec(playerHtml)) !== null) {
|
||||
let link = mirrorMatch[1].trim();
|
||||
|
||||
if (link.includes("supervideo")) {
|
||||
if (link.includes("dr0pstream")) {
|
||||
if (link.startsWith("//")) {
|
||||
link = "https:" + link;
|
||||
}
|
||||
@@ -113,21 +113,31 @@ async function extractStreamUrl(url) {
|
||||
try {
|
||||
const response = await fetchv2(url);
|
||||
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>/);
|
||||
if (obfuscatedScript) {
|
||||
const unpackedScript = unpack(obfuscatedScript[1]);
|
||||
console.log(unpackedScript);
|
||||
|
||||
const hlsMatch = unpackedScript.match(/file:"([^"]*\.m3u8[^"]*)"/);
|
||||
if (hlsMatch) {
|
||||
return hlsMatch[1];
|
||||
return JSON.stringify({
|
||||
streams: [{
|
||||
title: "Standard",
|
||||
streamUrl: hlsMatch[1],
|
||||
headers: {
|
||||
"Origin": "https://dr0pstream.com",
|
||||
"Referer": "https://dr0pstream.com/"
|
||||
}
|
||||
}],
|
||||
subtitle: ""
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
return "https://error.org/";
|
||||
return JSON.stringify({ streams: [], subtitle: "" });
|
||||
} catch (err) {
|
||||
console.error("Error extracting stream URL:", err);
|
||||
return "https://error.org/";
|
||||
return JSON.stringify({ streams: [], subtitle: "" });
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
"name": "50/50",
|
||||
"icon": "https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcQ3122kQwublLkZ6rf1fEpUP79BxZOFmH9BSA&s"
|
||||
},
|
||||
"version": "1.0.0",
|
||||
"version": "1.0.1",
|
||||
"language": "German",
|
||||
"streamType": "HLS",
|
||||
"quality": "1080p",
|
||||
|
||||
Reference in New Issue
Block a user