Undo my changes to drpeppershaker plugin

make-only-subtitle-default
Rick Meijer 5 years ago
parent 89f2aa3bf1
commit 19c75f9972
No known key found for this signature in database
GPG Key ID: C36BEC4306EE98E2

@ -1,5 +1,4 @@
const fs = require('fs');
const path = require('path');
module.exports.details = function details() {
return {
@ -91,7 +90,6 @@ module.exports.plugin = function plugin(file, librarySettings, inputs, otherArgu
subsFile[subsFile.length - 2] += `.${lang}`;
subsFile[subsFile.length - 1] = 'srt';
subsFile = subsFile.join('.');
subsFile = path.join(librarySettings.folder, subsFile);
const { index } = subStream;
if (fs.existsSync(`${subsFile}`)) {

Loading…
Cancel
Save