forked from 50n50/sources
Update animedefenders/animedefenders.js
This commit is contained in:
@@ -85,11 +85,12 @@ async function extractStreamUrl(url) {
|
|||||||
const response = await fetchv2(url);
|
const response = await fetchv2(url);
|
||||||
const html = await response.text();
|
const html = await response.text();
|
||||||
|
|
||||||
const subUrlRegex = /data-url="(https:\/\/ee\.anih1\.top\/bb\/sub[^"]+)"/;
|
const subUrlRegex = /"actual_url":"([^"]+)"/;
|
||||||
const match = html.match(subUrlRegex);
|
const match = html.match(subUrlRegex);
|
||||||
|
|
||||||
if (match && match[1]) {
|
if (match && match[1]) {
|
||||||
const subUrl = match[1];
|
const subUrl = match[1].replace(/\\\//g, '/');
|
||||||
|
|
||||||
const headers = {
|
const headers = {
|
||||||
"Referer": "https://ee.anih1.top",
|
"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"
|
"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"
|
||||||
|
|||||||
Reference in New Issue
Block a user