fxing youtubes gay ass urls with paylists in it instead of the fucking video url
All checks were successful
fetch npm modules / f0ck the f0cker (push) Successful in 15s
All checks were successful
fetch npm modules / f0ck the f0cker (push) Successful in 15s
This commit is contained in:
@ -88,7 +88,7 @@ export default async bot => {
|
||||
else {
|
||||
// is not instagram
|
||||
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);
|
||||
const meta = JSON.parse((await queue.exec(`yt-dlp --proxy ${cfg.main.socks} -f 'bv*[height<=720]+ba/b[height<=720] / wv*+ba/w' -I 1 --skip-download --dump-json "${link}"`)).stdout);
|
||||
ext = meta.ext;
|
||||
} catch(err) {
|
||||
const tmphead = (await fetch(link, { method: "HEAD" })).headers["content-type"];
|
||||
@ -98,7 +98,7 @@ export default async bot => {
|
||||
}
|
||||
|
||||
if(!Object.values(cfg.mimes).includes(ext?.toLowerCase())) {
|
||||
await e.reply("mime schmime");
|
||||
await e.reply("i hoab mir ind'hos'n g'schnissn schau moa noachm maim du f1ck");
|
||||
return console.log('mime schmime ' + ext);
|
||||
}
|
||||
|
||||
@ -135,7 +135,7 @@ export default async bot => {
|
||||
}
|
||||
else {
|
||||
try {
|
||||
source = (await queue.exec(`yt-dlp --proxy ${cfg.main.socks} -f 'bv*[height<=720]+ba/b[height<=720] / wv*+ba/w' "${link}" --max-filesize ${maxfilesize / 1024}k --postprocessor-args "ffmpeg:-bitexact" -o "./tmp/${uuid}.%(ext)s" --print after_move:filepath --merge-output-format "mp4"`)).stdout.trim();
|
||||
source = (await queue.exec(`yt-dlp --proxy ${cfg.main.socks} -f 'bv*[height<=720]+ba/b[height<=720] / wv*+ba/w' -I 1 "${link}" --max-filesize ${maxfilesize / 1024}k --postprocessor-args "ffmpeg:-bitexact" -o "./tmp/${uuid}.%(ext)s" --print after_move:filepath --merge-output-format "mp4"`)).stdout.trim();
|
||||
} catch(err) {
|
||||
console.error('err:', err);
|
||||
if(e.type == 'tg')
|
||||
|
Reference in New Issue
Block a user