From 87f5089288effbd4c700b769cc8c5cc098235795 Mon Sep 17 00:00:00 2001 From: Rick Meijer Date: Tue, 16 Feb 2021 22:50:51 +0100 Subject: [PATCH] Auto stash before merge of "master" and "HaveAGitGat/master" --- .gitignore | 1 + .../Tdarr_Plugin_rr01_drpeppershaker_extract_subs_to_SRT.js | 2 ++ 2 files changed, 3 insertions(+) diff --git a/.gitignore b/.gitignore index 30bc162..fdff359 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ +.idea/ /node_modules \ No newline at end of file diff --git a/Community/Tdarr_Plugin_rr01_drpeppershaker_extract_subs_to_SRT.js b/Community/Tdarr_Plugin_rr01_drpeppershaker_extract_subs_to_SRT.js index 5076e26..a15e0d2 100644 --- a/Community/Tdarr_Plugin_rr01_drpeppershaker_extract_subs_to_SRT.js +++ b/Community/Tdarr_Plugin_rr01_drpeppershaker_extract_subs_to_SRT.js @@ -1,4 +1,5 @@ const fs = require('fs'); +const path = require('path'); module.exports.details = function details() { return { @@ -90,6 +91,7 @@ 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}`)) {