mirror of
https://github.com/movie-web/providers.git
synced 2025-09-13 14:23:27 +00:00
fix closeload scraper
This commit is contained in:
@@ -43,7 +43,7 @@ export const closeLoadScraper = makeEmbed({
|
|||||||
const evalCode = iframeRes$('script')
|
const evalCode = iframeRes$('script')
|
||||||
.filter((_, el) => {
|
.filter((_, el) => {
|
||||||
const script = iframeRes$(el);
|
const script = iframeRes$(el);
|
||||||
return (script.attr('type') === 'text/javascript' && script.html()?.includes('eval')) ?? false;
|
return (script.attr('type') === 'text/javascript' && script.html()?.includes('p,a,c,k,e,d')) ?? false;
|
||||||
})
|
})
|
||||||
.html();
|
.html();
|
||||||
if (!evalCode) throw new Error("Couldn't find eval code");
|
if (!evalCode) throw new Error("Couldn't find eval code");
|
||||||
|
Reference in New Issue
Block a user