Undo my changes to drpeppershaker plugin

This commit is contained in:
Rick Meijer 2021-02-16 23:07:05 +01:00
parent 89f2aa3bf1
commit 19c75f9972
No known key found for this signature in database
GPG key ID: C36BEC4306EE98E2

View file

@ -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}`)) {