mirror of
https://github.com/gabehf/Tdarr_Plugins.git
synced 2026-03-15 02:05:54 -07:00
commit
9d6e5cbf13
1 changed files with 0 additions and 35 deletions
|
|
@ -125,40 +125,5 @@ const plugin = (file, librarySettings, inputs, otherArguments) => {
|
||||||
return response;
|
return response;
|
||||||
};
|
};
|
||||||
|
|
||||||
module.exports.onTranscodeSuccess = function onTranscodeSuccess(
|
|
||||||
file,
|
|
||||||
librarySettings,
|
|
||||||
inputs,
|
|
||||||
) {
|
|
||||||
console.log(
|
|
||||||
'Transcode success! Now do some stuff with the newly scanned file.',
|
|
||||||
);
|
|
||||||
|
|
||||||
// Optional response if you need to modify database
|
|
||||||
const response = {
|
|
||||||
file,
|
|
||||||
removeFromDB: false,
|
|
||||||
updateDB: false,
|
|
||||||
};
|
|
||||||
|
|
||||||
return response;
|
|
||||||
};
|
|
||||||
|
|
||||||
module.exports.onTranscodeError = function onTranscodeError(
|
|
||||||
file,
|
|
||||||
librarySettings,
|
|
||||||
inputs,
|
|
||||||
) {
|
|
||||||
console.log('Transcode fail! Now do some stuff with the original file.');
|
|
||||||
|
|
||||||
// Optional response if you need to modify database
|
|
||||||
const response = {
|
|
||||||
file,
|
|
||||||
removeFromDB: false,
|
|
||||||
updateDB: false,
|
|
||||||
};
|
|
||||||
|
|
||||||
return response;
|
|
||||||
};
|
|
||||||
module.exports.details = details;
|
module.exports.details = details;
|
||||||
module.exports.plugin = plugin;
|
module.exports.plugin = plugin;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue