Update animedefenders/animedefenders.js

This commit is contained in:
aka paul
2026-02-06 17:22:26 +00:00
parent 8c0d6a9c3d
commit 9f36faa961
+3 -2
View File
@@ -85,11 +85,12 @@ async function extractStreamUrl(url) {
const response = await fetchv2(url);
const html = await response.text();
const subUrlRegex = /data-url="(https:\/\/ee\.anih1\.top\/bb\/sub[^"]+)"/;
const subUrlRegex = /"actual_url":"([^"]+)"/;
const match = html.match(subUrlRegex);
if (match && match[1]) {
const subUrl = match[1];
const subUrl = match[1].replace(/\\\//g, '/');
const headers = {
"Referer": "https://ee.anih1.top",
"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.124 Safari/537.36"