From 182e0e111267e9013349dda1d94176be25916c6a Mon Sep 17 00:00:00 2001 From: Vladimir Borisov Date: Fri, 25 Oct 2024 11:42:24 +0300 Subject: [PATCH] Lint --- src/ShellVideo/ShellVideo.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/ShellVideo/ShellVideo.js b/src/ShellVideo/ShellVideo.js index f32ce55..77cd095 100644 --- a/src/ShellVideo/ShellVideo.js +++ b/src/ShellVideo/ShellVideo.js @@ -26,7 +26,7 @@ var stremioToMPVProps = { }; function parseVersion(version) { - return version.split('.').slice(0, 2).map(function (v) { return parseInt(v) }); + return version.split('.').slice(0, 2).map(function (v) { return parseInt(v); }); } function versionGTE(a, b) { @@ -109,6 +109,8 @@ function ShellVideo(options) { switch (args.name) { case 'mpv-version': resolveMPVVersion(args.data); + props[args.name] = logProp(args); + break; case 'ffmpeg-version': { props[args.name] = logProp(args); break; @@ -338,7 +340,7 @@ function ShellVideo(options) { ipc.send('mpv-set-prop', ['input-defalt-bindings', separateWindow]); ipc.send('mpv-set-prop', ['input-vo-keyboard', separateWindow]); - var startAt = Math.floor(parseInt(commandArgs.time, 10) / 1000) || 0 + var startAt = Math.floor(parseInt(commandArgs.time, 10) / 1000) || 0; if (startAt !== 0) { if (versionGTE(mpvVersion, '0.39')) { ipc.send('mpv-command', ['loadfile', stream.url, 'replace', '-1', 'start=+' + startAt]);