lint fixes

This commit is contained in:
HaveAGitGat 2020-12-19 10:03:49 +01:00
parent b13ae8cc29
commit f0109f2bfe
9 changed files with 40 additions and 10 deletions

View file

@ -54,6 +54,7 @@ function plugin(file, librarySettings, inputs) {
// Check if file is a video. If it isn't then exit plugin.
if (file.fileMedium !== 'video') {
// eslint-disable-next-line no-console
console.log('File is not video');
response.infoLog += '☒File is not video. \n';
response.processFile = false;
@ -145,7 +146,8 @@ function plugin(file, librarySettings, inputs) {
// Convert file if convert variable is set to true.
if (convert === true) {
response.processFile = true;
response.preset = `, -map 0 -c:v copy -c:a copy ${ffmpegCommandInsert} -strict -2 -c:s copy -max_muxing_queue_size 9999 `;
response.preset = `, -map 0 -c:v copy -c:a copy ${ffmpegCommandInsert} `
+ '-strict -2 -c:s copy -max_muxing_queue_size 9999 ';
} else {
response.infoLog += '☑File contains all required audio formats. \n';
response.processFile = false;