From 4ca52bf989c550f334b46b11880f046f4f49cb1d Mon Sep 17 00:00:00 2001 From: Alexandru Branza Date: Thu, 24 Oct 2024 18:08:40 +0300 Subject: [PATCH] Lint --- src/ShellVideo/ShellVideo.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/ShellVideo/ShellVideo.js b/src/ShellVideo/ShellVideo.js index 96e126f..0501b0e 100644 --- a/src/ShellVideo/ShellVideo.js +++ b/src/ShellVideo/ShellVideo.js @@ -320,10 +320,11 @@ function ShellVideo(options) { ipc.send('mpv-set-prop', ['input-defalt-bindings', separateWindow]); ipc.send('mpv-set-prop', ['input-vo-keyboard', separateWindow]); - if (commandArgs.time !== null && isFinite(commandArgs.time)) + if (commandArgs.time !== null && isFinite(commandArgs.time)) { ipc.send('mpv-command', ['loadfile', stream.url, 'replace', 'start=+'+Math.floor(parseInt(commandArgs.time, 10)/1000)]); - else + } else { ipc.send('mpv-command', ['loadfile', stream.url]); + } ipc.send('mpv-set-prop', ['pause', false]); ipc.send('mpv-set-prop', ['speed', props.speed]); ipc.send('mpv-set-prop', ['aid', props.aid]);