Skip to content

Commit

Permalink
Lint
Browse files Browse the repository at this point in the history
  • Loading branch information
core1024 committed Oct 25, 2024
1 parent cbbd76e commit 182e0e1
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/ShellVideo/ShellVideo.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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]);
Expand Down

0 comments on commit 182e0e1

Please sign in to comment.