Update animesdigital/animesdigital.js
This commit is contained in:
@@ -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";
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user