aboutsummaryrefslogtreecommitdiff
path: root/src/api/utils/videoPreview
diff options
context:
space:
mode:
authorZephyrrus <[email protected]>2020-12-24 10:40:50 +0200
committerZephyrrus <[email protected]>2020-12-24 10:40:50 +0200
commit90001c2df56d58e69fd199a518ae7f3e4ed327fc (patch)
treeac601537b5f464a1b03b084e5139e460f42e3473 /src/api/utils/videoPreview
parentchore: update lock files (diff)
downloadhost.fuwn.me-90001c2df56d58e69fd199a518ae7f3e4ed327fc.tar.xz
host.fuwn.me-90001c2df56d58e69fd199a518ae7f3e4ed327fc.zip
chore: remove trailing commas
Diffstat (limited to 'src/api/utils/videoPreview')
-rw-r--r--src/api/utils/videoPreview/FragmentPreview.js2
-rw-r--r--src/api/utils/videoPreview/FrameIntervalPreview.js4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/api/utils/videoPreview/FragmentPreview.js b/src/api/utils/videoPreview/FragmentPreview.js
index bf623c1..4f681fa 100644
--- a/src/api/utils/videoPreview/FragmentPreview.js
+++ b/src/api/utils/videoPreview/FragmentPreview.js
@@ -38,7 +38,7 @@ module.exports = async (opts) => {
fragmentDurationSecond = 3,
ignoreBeforePercent = 0.25,
- ignoreAfterPercent = 0.75,
+ ignoreAfterPercent = 0.75
} = opts;
const info = await probe(input);
diff --git a/src/api/utils/videoPreview/FrameIntervalPreview.js b/src/api/utils/videoPreview/FrameIntervalPreview.js
index 8c5f1c3..8bb9836 100644
--- a/src/api/utils/videoPreview/FrameIntervalPreview.js
+++ b/src/api/utils/videoPreview/FrameIntervalPreview.js
@@ -16,7 +16,7 @@ module.exports = async (opts) => {
output,
numFrames,
- numFramesPercent = 0.05,
+ numFramesPercent = 0.05
} = opts;
const info = await probe(input);
@@ -32,7 +32,7 @@ module.exports = async (opts) => {
const result = {
output,
- numFrames: numFramesToCapture,
+ numFrames: numFramesToCapture
};
await new Promise((resolve, reject) => {