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
This commit is contained in:
Damiano Lombardo 2021-09-23 00:41:52 +08:00 committed by GitHub
parent a8d905c820
commit 90261dfac5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;