mirror of
https://git.luna-app.eu/50n50/sources
synced 2025-12-30 19:24:55 +01:00
Update animesdigital/animesdigital.js
This commit is contained in:
parent
7b097156e0
commit
93a3a1a48d
1 changed files with 2 additions and 3 deletions
|
|
@ -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";
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue