From ec39e6d7ad8dc38f0d9f0866d55cb0933af839e5 Mon Sep 17 00:00:00 2001 From: qskj Date: Sat, 12 Oct 2019 15:38:20 +0800 Subject: [PATCH] update --- lib/util/check_aria2c_installed.js | 5 +++-- lib/util/check_ffmpeg_installed.js | 6 +++--- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/lib/util/check_aria2c_installed.js b/lib/util/check_aria2c_installed.js index 10ca23a..494e907 100644 --- a/lib/util/check_aria2c_installed.js +++ b/lib/util/check_aria2c_installed.js @@ -1,8 +1,9 @@ 'use strict'; const path = require('path') const fs = require('fs-extra'); -var spawn = require('child_process').spawn -var iconv = require('iconv-lite') +const spawn = require('child_process').spawn +const iconv = require('iconv-lite') +const os = require('os') const {unlink} = require(path.join(__dirname,'../utils')) diff --git a/lib/util/check_ffmpeg_installed.js b/lib/util/check_ffmpeg_installed.js index ab9d617..18ef528 100644 --- a/lib/util/check_ffmpeg_installed.js +++ b/lib/util/check_ffmpeg_installed.js @@ -1,9 +1,9 @@ 'use strict'; const path = require('path') const fs = require('fs-extra'); -var spawn = require('child_process').spawn -var iconv = require('iconv-lite') -var os = require('os') +const spawn = require('child_process').spawn +const iconv = require('iconv-lite') +const os = require('os') const {unlink} = require(path.join(__dirname,'../utils')) var eunzip = async function(zippath, outpath){