mirror of
https://github.com/gabehf/Tdarr_Plugins.git
synced 2026-03-16 10:45:53 -07:00
Run lint
This commit is contained in:
parent
42185644ee
commit
2613115e13
1 changed files with 2 additions and 3 deletions
|
|
@ -82,7 +82,7 @@ const plugin = (file, librarySettings, inputs, otherArguments) => {
|
||||||
let extraArguments = '';
|
let extraArguments = '';
|
||||||
let genpts = '';
|
let genpts = '';
|
||||||
let convert = false;
|
let convert = false;
|
||||||
|
|
||||||
// Check if force_conform option is checked.
|
// Check if force_conform option is checked.
|
||||||
// If so then check streams and add any extra parameters required to make file conform with output format.
|
// If so then check streams and add any extra parameters required to make file conform with output format.
|
||||||
if (inputs.force_conform === true) {
|
if (inputs.force_conform === true) {
|
||||||
|
|
@ -135,13 +135,12 @@ const plugin = (file, librarySettings, inputs, otherArguments) => {
|
||||||
response.infoLog += `☑File is already in ${inputs.container} container. \n`;
|
response.infoLog += `☑File is already in ${inputs.container} container. \n`;
|
||||||
return response;
|
return response;
|
||||||
}
|
}
|
||||||
|
|
||||||
// If Container .ts or .avi set genpts to fix unknown timestamp
|
// If Container .ts or .avi set genpts to fix unknown timestamp
|
||||||
if (file.container.toLowerCase() === 'ts' || file.container.toLowerCase() === 'avi') {
|
if (file.container.toLowerCase() === 'ts' || file.container.toLowerCase() === 'avi') {
|
||||||
genpts = '-fflags +genpts';
|
genpts = '-fflags +genpts';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
if (convert === true) {
|
if (convert === true) {
|
||||||
response.preset += `${genpts}, -map 0 -c copy -max_muxing_queue_size 9999 ${extraArguments}`;
|
response.preset += `${genpts}, -map 0 -c copy -max_muxing_queue_size 9999 ${extraArguments}`;
|
||||||
response.processFile = true;
|
response.processFile = true;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue