misc
This commit is contained in:
@ -101,7 +101,10 @@ export default (router, tpl) => {
|
||||
dest: `${cfg.websrv.paths.images}/${actitem.dest}`,
|
||||
mime: actitem.mime,
|
||||
size: lib.formatSize(actitem.size),
|
||||
timestamp: lib.timeAgo(new Date(actitem.stamp * 1e3).toISOString()),
|
||||
timestamp: {
|
||||
timeago: lib.timeAgo(new Date(actitem.stamp * 1e3).toISOString()),
|
||||
timefull: new Date(actitem.stamp * 1e3).toISOString()
|
||||
},
|
||||
tags: tags
|
||||
},
|
||||
title: `${actitem.id} - f0ck.me`,
|
||||
@ -116,6 +119,7 @@ export default (router, tpl) => {
|
||||
uff: true
|
||||
},
|
||||
link: link,
|
||||
phrase: cfg.websrv.phrases[~~(Math.random() * cfg.websrv.phrases.length)],
|
||||
tmp: output
|
||||
};
|
||||
}
|
||||
|
@ -81,11 +81,11 @@ export default async bot => {
|
||||
let source;
|
||||
if(meta.ext === "mp4") {
|
||||
source = (await exec(`yt-dlp -f 'bv*[height<=720]+ba/b[height<=720] / wv*+ba/w' "${link}" --max-filesize ${maxfilesize}k --merge-output-format mp4 -o ./tmp/${filename}`)).stdout.trim();
|
||||
//change yt-dlp to youtube-dl if problem ^
|
||||
//change 720 to any other available resolution, higher = better quality but bigger filesize
|
||||
}
|
||||
else {
|
||||
source = (await exec(`yt-dlp -f 'bv*[height<=720]+ba/b[height<=720] / wv*+ba/w' "${link}" --max-filesize ${maxfilesize}k -o ./tmp/${filename}`)).stdout.trim();
|
||||
//change yt-dlp to youtube-dl if problem ^
|
||||
//change 720 to any other available resolution, higher = better quality but bigger filesize
|
||||
}
|
||||
|
||||
if(source.match(/larger than/))
|
||||
|
Reference in New Issue
Block a user