Separate the input and output parameters with <io> (#171)

Commas in filepath will throw an error, use https://github.com/HaveAGitGat/Tdarr/issues/456#issuecomment-894011541
make-only-subtitle-default
Damiano Lombardo 4 years ago committed by GitHub
parent a8d905c820
commit 90261dfac5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -61,7 +61,7 @@ module.exports.plugin = function plugin(file, librarySettings, inputs, otherArgu
}
response.infoLog += 'Found subs to extract!\n';
let command = '-y,';
let command = '-y <io>';
for (let i = 0; i < subsArr.length; i += 1) {
const subStream = subsArr[i];
let lang = '';
@ -102,7 +102,7 @@ module.exports.plugin = function plugin(file, librarySettings, inputs, otherArgu
}
}
if (command === '-y,') {
if (command === '-y <io>') {
response.infoLog += 'All subs already extracted!\n';
if (inputs.remove_subs === 'no') {
response.processFile = false;

Loading…
Cancel
Save