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) {
|
||||
|
||||
Reference in New Issue
Block a user