mirror of
https://github.com/gabehf/Tdarr_Plugins.git
synced 2026-03-14 01:36:08 -07:00
Fix lint issues
This commit is contained in:
parent
80f02bf810
commit
a7d262f39c
4 changed files with 6 additions and 5 deletions
|
|
@ -36,7 +36,8 @@ var details = function () { return ({
|
||||||
inputUI: {
|
inputUI: {
|
||||||
type: 'directory',
|
type: 'directory',
|
||||||
},
|
},
|
||||||
tooltip: 'Specify directory to check. Leave blank to use working directory. Put below input plugin to check original file directory.',
|
tooltip: 'Specify directory to check. Leave blank to use working directory.'
|
||||||
|
+ ' Put below Input File plugin to check original file directory.',
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
outputs: [
|
outputs: [
|
||||||
|
|
|
||||||
|
|
@ -70,7 +70,7 @@ var plugin = function (args) { return __awaiter(void 0, void 0, void 0, function
|
||||||
fileName = (0, fileUtils_1.getFileName)(args.inputFileObj._id);
|
fileName = (0, fileUtils_1.getFileName)(args.inputFileObj._id);
|
||||||
container = (0, fileUtils_1.getContainer)(args.inputFileObj._id);
|
container = (0, fileUtils_1.getContainer)(args.inputFileObj._id);
|
||||||
outputDir = (0, fileUtils_1.getFileAbosluteDir)(args.originalLibraryFile._id);
|
outputDir = (0, fileUtils_1.getFileAbosluteDir)(args.originalLibraryFile._id);
|
||||||
ouputFilePath = outputDir + '/' + fileName + '.' + container;
|
ouputFilePath = "".concat(outputDir, "/").concat(fileName, ".").concat(container);
|
||||||
return [4 /*yield*/, (0, fileUtils_1.moveFileAndValidate)({
|
return [4 /*yield*/, (0, fileUtils_1.moveFileAndValidate)({
|
||||||
inputPath: args.inputFileObj._id,
|
inputPath: args.inputFileObj._id,
|
||||||
outputPath: ouputFilePath,
|
outputPath: ouputFilePath,
|
||||||
|
|
|
||||||
|
|
@ -36,7 +36,8 @@ const details = (): IpluginDetails => ({
|
||||||
inputUI: {
|
inputUI: {
|
||||||
type: 'directory',
|
type: 'directory',
|
||||||
},
|
},
|
||||||
tooltip: 'Specify directory to check. Leave blank to use working directory. Put below input plugin to check original file directory.',
|
tooltip: 'Specify directory to check. Leave blank to use working directory.'
|
||||||
|
+ ' Put below Input File plugin to check original file directory.',
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
outputs: [
|
outputs: [
|
||||||
|
|
|
||||||
|
|
@ -1,12 +1,11 @@
|
||||||
import {
|
import {
|
||||||
getContainer, getFileAbosluteDir, getFileName, getSubStem, moveFileAndValidate,
|
getContainer, getFileAbosluteDir, getFileName, moveFileAndValidate,
|
||||||
} from '../../../../FlowHelpers/1.0.0/fileUtils';
|
} from '../../../../FlowHelpers/1.0.0/fileUtils';
|
||||||
import {
|
import {
|
||||||
IpluginDetails,
|
IpluginDetails,
|
||||||
IpluginInputArgs,
|
IpluginInputArgs,
|
||||||
IpluginOutputArgs,
|
IpluginOutputArgs,
|
||||||
} from '../../../../FlowHelpers/1.0.0/interfaces/interfaces';
|
} from '../../../../FlowHelpers/1.0.0/interfaces/interfaces';
|
||||||
import normJoinPath from '../../../../FlowHelpers/1.0.0/normJoinPath';
|
|
||||||
|
|
||||||
/* eslint no-plusplus: ["error", { "allowForLoopAfterthoughts": true }] */
|
/* eslint no-plusplus: ["error", { "allowForLoopAfterthoughts": true }] */
|
||||||
const details = ():IpluginDetails => ({
|
const details = ():IpluginDetails => ({
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue