Update animesdigital/animesdigital.js

This commit is contained in:
aka paul 2025-12-27 14:50:45 +00:00
parent 7b097156e0
commit 93a3a1a48d

View file

@ -85,13 +85,12 @@ async function extractEpisodes(url) {
}
}
async function extractStreamUrl(url) {
try {
const response = await fetchv2(url);
const html = await response.text();
const iframeRegex = /<iframe[^>]*src="([^"]*anivideo\.net[^"]*)"[^>]*>/i;
const iframeRegex = /<iframe[^>]*src=["']\s*([^"']*anivideo\.net[^"']*?)\s*["'][^>]*>/i;
const iframeMatch = html.match(iframeRegex);
if (!iframeMatch) {
@ -116,4 +115,4 @@ async function extractStreamUrl(url) {
console.error('Error extracting stream URL:', err);
return "https://files.catbox.moe/avolvc.mp4";
}
}
}