uga aga
All checks were successful
fetch npm modules / f0ck the f0cker (push) Successful in 12s

This commit is contained in:
x
2025-07-22 17:35:51 +02:00
parent 774348ee99
commit dad526822c

View File

@@ -89,6 +89,17 @@ export default async bot => {
// imghure
ext = link.split('.').pop();
}
else if(link.match(regex.yt)) {
//yt - fuck anti bot protection
try {
const meta = JSON.parse((await queue.exec(`yt-dlp --proxy ${cfg.main.socks} -f 'bv*[height<=720]+ba/b[height<=720] / wv*+ba/w' --skip-download --dump-json "${link}"`)).stdout);
ext = meta.ext;
} catch(err) {
const tmphead = (await fetch(link, { method: "HEAD" })).headers["content-type"];
// this can be undefined for unsupported mime types, but will be caught in the general mime check below
ext = cfg.mimes[tmphead];
}
}
else if(link.match(regex.fourchan)) {
//4chan - fuck cloudflare :)
try {