Misc changes
This commit is contained in:
parent
9e9906ffed
commit
885000e21a
@ -65,42 +65,42 @@ 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) => {
|
||||||
|
|
||||||
const lib = require('../methods/lib')();
|
const lib = require('../methods/lib')();
|
||||||
// load default plugin inputs
|
// load default plugin inputs
|
||||||
inputs = lib.loadDefaultValues(inputs, details);
|
inputs = lib.loadDefaultValues(inputs, details);
|
||||||
|
|
||||||
// Load response object
|
// Load response object
|
||||||
const response = {
|
const response = {
|
||||||
processFile: false, // If set to false, the file will be skipped. Set to true to have the file transcoded.
|
processFile: false, // If set to false, the file will be skipped. Set to true to have the file transcoded.
|
||||||
preset: '', // HandBrake/FFmpeg CLI arguments you'd like to use.
|
preset: '', // HandBrake/FFmpeg CLI arguments you'd like to use.
|
||||||
// For FFmpeg, the input arguments come first followed by <io>, followed by the output argument.
|
// For FFmpeg, the input arguments come first followed by <io>, followed by the output argument.
|
||||||
// Examples
|
// Examples
|
||||||
// HandBrake
|
// HandBrake
|
||||||
// '-Z "Very Fast 1080p30"'
|
// '-Z "Very Fast 1080p30"'
|
||||||
// FFmpeg
|
// FFmpeg
|
||||||
// '-sn <io> -map_metadata -1 -c:v copy -c:a copy'
|
// '-sn <io> -map_metadata -1 -c:v copy -c:a copy'
|
||||||
container: '.mp4', // The container of the transcoded output file.
|
container: '.mp4', // The container of the transcoded output file.
|
||||||
handBrakeMode: false, // Set whether to use HandBrake or FFmpeg for transcoding
|
handBrakeMode: false, // Set whether to use HandBrake or FFmpeg for transcoding
|
||||||
FFmpegMode: false,
|
FFmpegMode: false,
|
||||||
infoLog: '', // This will be shown when the user clicks the 'i' (info) button on a file in the output queue if
|
infoLog: '', // This will be shown when the user clicks the 'i' (info) button on a file in the output queue if
|
||||||
// it has been skipped.
|
// it has been skipped.
|
||||||
// Give reasons why it has been skipped ('File has no title metadata, File meets conditions!')
|
// Give reasons why it has been skipped ('File has no title metadata, File meets conditions!')
|
||||||
|
|
||||||
// Optional (include together)
|
// Optional (include together)
|
||||||
//file,
|
//file,
|
||||||
//removeFromDB: false, // Tell Tdarr to remove file from database if true
|
//removeFromDB: false, // Tell Tdarr to remove file from database if true
|
||||||
//updateDB: false, // Change file object above and update database if true
|
//updateDB: false, // Change file object above and update database if true
|
||||||
};
|
};
|
||||||
|
|
||||||
// Required global variables for functions
|
// Required global variables for functions
|
||||||
let ffmpegAudioFirstTrack = '';
|
let ffmpegAudioFirstTrack = '';
|
||||||
let ffmpegAudioOtherTracks = '';
|
let ffmpegAudioOtherTracks = '';
|
||||||
let ffmpegSubs = '';
|
let ffmpegSubs = '';
|
||||||
let ffmpegVideo = '';
|
let ffmpegVideo = '';
|
||||||
|
|
||||||
// Defining functions
|
// Defining functions
|
||||||
|
|
||||||
const processAudio = (file, librarySettings, inputs, otherArguments) => {
|
const processAudio = (file, librarySettings, inputs, otherArguments) => {
|
||||||
|
|
||||||
if (inputs.process_audio == false) {
|
if (inputs.process_audio == false) {
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user