@kaguya-anime/parsers
Advanced tools
Comparing version 1.3.0 to 1.3.1
@@ -118,2 +118,5 @@ Object.defineProperty(exports, "__esModule", { value: true }); | ||
const hashLink = $(el).val(); | ||
const iframeUrl = decodeBase64(hashLink); | ||
if (iframeUrl.includes('amhentai')) | ||
return null; | ||
return { | ||
@@ -124,3 +127,3 @@ hash: hashLink, | ||
}); | ||
return servers.filter((server) => server.hash); | ||
return servers.filter((server) => server === null || server === void 0 ? void 0 : server.hash); | ||
} | ||
@@ -130,6 +133,7 @@ getVideoUrl(server) { | ||
const iframeHTML = decodeBase64(server.hash); | ||
const iframeUrls = iframeHTML.match(/(?<=src=").*?(?=[?"])/g); | ||
const $ = (0, cheerio_1.load)(iframeHTML); | ||
const iframeUrl = $('iframe').attr('src'); | ||
return [ | ||
{ | ||
file: iframeUrls[0], | ||
file: iframeUrl, | ||
isEmbed: true, | ||
@@ -136,0 +140,0 @@ }, |
{ | ||
"name": "@kaguya-anime/parsers", | ||
"version": "1.3.0", | ||
"version": "1.3.1", | ||
"main": "build/index.js", | ||
@@ -43,3 +43,3 @@ "license": "MIT", | ||
}, | ||
"gitHead": "ace2bd504d35b69f67f156c33a3e3cec518e508e" | ||
"gitHead": "597258e7e8cc6276d5393fb857c5c500e2d84e59" | ||
} |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
431918
7757