mirror of
https://github.com/gabehf/Tdarr_Plugins.git
synced 2026-03-15 18:25:54 -07:00
new function + tidy
This commit is contained in:
parent
d60e0c17ad
commit
32b8d73e0f
5 changed files with 228 additions and 15 deletions
|
|
@ -1,7 +1,7 @@
|
|||
var fs = require('fs');
|
||||
var path = require("path");
|
||||
if (fs.existsSync(path.join(process.cwd() + "/npm"))) {
|
||||
var rootModules = path.join(process.cwd() + '/npm/node_modules/')
|
||||
if (fs.existsSync(path.join(process.cwd() , "/npm"))) {
|
||||
var rootModules = path.join(process.cwd() , '/npm/node_modules/')
|
||||
} else{
|
||||
var rootModules = ''
|
||||
}
|
||||
|
|
@ -10,4 +10,4 @@ const importFresh = require(rootModules+'import-fresh');
|
|||
|
||||
module.exports.remuxContainer = importFresh('./library/actions/remuxContainer.js')
|
||||
module.exports.transcodeStandardiseAudioCodecs = importFresh('./library/actions/transcodeStandardiseAudioCodecs.js')
|
||||
|
||||
module.exports.transcodeAddAudioStream = importFresh('./library/actions/transcodeAddAudioStream.js')
|
||||
Loading…
Add table
Add a link
Reference in a new issue