Added argument support to slow/speed, made video detection also detect images
This commit is contained in:
parent
e00671f0d5
commit
7db1aa880c
4 changed files with 52 additions and 18 deletions
|
@ -59,7 +59,7 @@ const getImage = async (image, image2, video, gifv = false) => {
|
|||
payload.type = "image/gif";
|
||||
} else if (video) {
|
||||
payload.type = await getType(payload.path);
|
||||
if (!payload.type || !videoFormats.includes(payload.type)) return;
|
||||
if (!payload.type || (!videoFormats.includes(payload.type) && !imageFormats.includes(payload.type))) return;
|
||||
} else {
|
||||
payload.type = await getType(payload.path);
|
||||
if (!payload.type || !imageFormats.includes(payload.type)) return;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue