mirror of
https://github.com/gabehf/Tdarr_Plugins.git
synced 2026-03-14 01:36:08 -07:00
lint fixes
This commit is contained in:
parent
b13ae8cc29
commit
f0109f2bfe
9 changed files with 40 additions and 10 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue