mirror of
https://github.com/gabehf/Tdarr_Plugins.git
synced 2026-03-15 02:05:54 -07:00
Fix checkPlugin issues
This commit is contained in:
parent
beee66a7c3
commit
3b215069a5
1 changed files with 9 additions and 8 deletions
|
|
@ -1,14 +1,10 @@
|
||||||
/* eslint-disable max-len */
|
/* eslint-disable max-len */
|
||||||
|
|
||||||
const fs = require('fs');
|
|
||||||
const path = require('path');
|
|
||||||
const loadDefaultValues = require('../methods/loadDefaultValues');
|
|
||||||
|
|
||||||
const details = () => ({
|
const details = () => ({
|
||||||
id: 'Tdarr_Plugin_rename_based_on_codec_schadi',
|
id: 'Tdarr_Plugin_rename_based_on_codec_schadi',
|
||||||
Stage: 'Post-processing',
|
Stage: 'Post-processing',
|
||||||
Name: 'Rename based on codec Video and Audio',
|
Name: 'Rename based on codec Video and Audio',
|
||||||
Type: 'Video_Audio',
|
Type: 'Video',
|
||||||
Operation: 'Transcode',
|
Operation: 'Transcode',
|
||||||
Description: `
|
Description: `
|
||||||
If the filename contains a codec information like h264, av1 or similar for video and AC3, AAC or trueHD \n\n
|
If the filename contains a codec information like h264, av1 or similar for video and AC3, AAC or trueHD \n\n
|
||||||
|
|
@ -53,7 +49,7 @@ const details = () => ({
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'additional_extensions',
|
name: 'additional_extensions',
|
||||||
type: 'text',
|
type: 'string',
|
||||||
defaultValue: '.nfo,.srt',
|
defaultValue: '.nfo,.srt',
|
||||||
inputUI: {
|
inputUI: {
|
||||||
type: 'text',
|
type: 'text',
|
||||||
|
|
@ -67,8 +63,13 @@ const details = () => ({
|
||||||
|
|
||||||
// eslint-disable-next-line no-unused-vars
|
// eslint-disable-next-line no-unused-vars
|
||||||
const plugin = (file, librarySettings, inputs, otherArguments) => {
|
const plugin = (file, librarySettings, inputs, otherArguments) => {
|
||||||
// eslint-disable-next-line no-param-reassign
|
const lib = require('../methods/lib')();
|
||||||
inputs = loadDefaultValues(inputs, details);
|
// eslint-disable-next-line no-unused-vars,no-param-reassign
|
||||||
|
inputs = lib.loadDefaultValues(inputs, details);
|
||||||
|
|
||||||
|
const fs = require('fs');
|
||||||
|
const path = require('path');
|
||||||
|
|
||||||
const fileNameOld = file._id;
|
const fileNameOld = file._id;
|
||||||
|
|
||||||
const response = {
|
const response = {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue