mirror of
https://github.com/gabehf/Tdarr_Plugins.git
synced 2026-03-16 18:45:53 -07:00
Merge pull request #182 from wieluk/patch-1
Update Tdarr_Plugin_e5c3_CnT_Add_Subtitles.js
This commit is contained in:
commit
dcbd90878d
2 changed files with 2 additions and 2 deletions
|
|
@ -1,10 +1,10 @@
|
||||||
/* eslint no-plusplus: ["error", { "allowForLoopAfterthoughts": true }] */
|
/* eslint no-plusplus: ["error", { "allowForLoopAfterthoughts": true }] */
|
||||||
|
/* eslint-disable */
|
||||||
/* eslint max-len: 0 */
|
/* eslint max-len: 0 */
|
||||||
/* eslint no-bitwise: 0 */
|
/* eslint no-bitwise: 0 */
|
||||||
/* eslint no-mixed-operators: 0 */
|
/* eslint no-mixed-operators: 0 */
|
||||||
|
|
||||||
const os = require('os');
|
const os = require('os');
|
||||||
|
|
||||||
function details() {
|
function details() {
|
||||||
return {
|
return {
|
||||||
id: 'Tdarr_Plugin_ER01_Transcode audio and video with HW (PC and Mac)',
|
id: 'Tdarr_Plugin_ER01_Transcode audio and video with HW (PC and Mac)',
|
||||||
|
|
|
||||||
|
|
@ -48,7 +48,7 @@ function plugin(file, librarySettings, inputs, otherArguments) {
|
||||||
if (
|
if (
|
||||||
!fs.existsSync(`${otherArguments.homePath}/Tdarr/node_modules/iso-639-2`)
|
!fs.existsSync(`${otherArguments.homePath}/Tdarr/node_modules/iso-639-2`)
|
||||||
) {
|
) {
|
||||||
execSync(`cd ${otherArguments.homePath}/Tdarr \n npm install iso-639-2`);
|
execSync(`cd ${otherArguments.homePath}/Tdarr \n npm install iso-639-2@2.0.0`);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
response.infoLog = `Please take a look at the input options\n A extra nodemodule is required.`;
|
response.infoLog = `Please take a look at the input options\n A extra nodemodule is required.`;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue