mirror of
https://github.com/gabehf/Tdarr_Plugins.git
synced 2026-03-16 10:45:53 -07:00
lint fix 1
This commit is contained in:
parent
b23bf31fa1
commit
9169a9aca5
1 changed files with 14 additions and 10 deletions
|
|
@ -1,21 +1,25 @@
|
||||||
var fs = require("fs");
|
const fs = require('fs');
|
||||||
var path = require("path");
|
const path = require('path');
|
||||||
if (fs.existsSync(path.join(process.cwd(), "/npm"))) {
|
|
||||||
var rootModules = path.join(process.cwd(), "/npm/node_modules/");
|
let rootModules;
|
||||||
|
if (fs.existsSync(path.join(process.cwd(), '/npm'))) {
|
||||||
|
rootModules = path.join(process.cwd(), '/npm/node_modules/');
|
||||||
} else {
|
} else {
|
||||||
var rootModules = "";
|
rootModules = '';
|
||||||
}
|
}
|
||||||
const importFresh = require(rootModules + "import-fresh");
|
|
||||||
|
// eslint-disable-next-line import/no-dynamic-require
|
||||||
|
const importFresh = require(`${rootModules}import-fresh`);
|
||||||
|
|
||||||
module.exports.remuxContainer = importFresh(
|
module.exports.remuxContainer = importFresh(
|
||||||
"./library/actions/remuxContainer.js"
|
'./library/actions/remuxContainer.js',
|
||||||
);
|
);
|
||||||
module.exports.transcodeStandardiseAudioCodecs = importFresh(
|
module.exports.transcodeStandardiseAudioCodecs = importFresh(
|
||||||
"./library/actions/transcodeStandardiseAudioCodecs.js"
|
'./library/actions/transcodeStandardiseAudioCodecs.js',
|
||||||
);
|
);
|
||||||
module.exports.transcodeAddAudioStream = importFresh(
|
module.exports.transcodeAddAudioStream = importFresh(
|
||||||
"./library/actions/transcodeAddAudioStream.js"
|
'./library/actions/transcodeAddAudioStream.js',
|
||||||
);
|
);
|
||||||
module.exports.transcodeKeepOneAudioStream = importFresh(
|
module.exports.transcodeKeepOneAudioStream = importFresh(
|
||||||
"./library/actions/transcodeKeepOneAudioStream.js"
|
'./library/actions/transcodeKeepOneAudioStream.js',
|
||||||
);
|
);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue