mirror of
https://github.com/gabehf/Tdarr_Plugins.git
synced 2026-03-09 23:48:15 -07:00
Add files via upload
This commit is contained in:
parent
09b89babf9
commit
5626f73075
2 changed files with 26 additions and 8 deletions
|
|
@ -77,12 +77,15 @@ var plugin = function (args) {
|
|||
}
|
||||
}
|
||||
if (newContainer === 'mp4') {
|
||||
if ([
|
||||
'hdmv_pgs_subtitle',
|
||||
'eia_608',
|
||||
'timed_id3',
|
||||
'subrip',
|
||||
].includes(codecName)) {
|
||||
if (codecType === 'attachment'
|
||||
|| [
|
||||
'hdmv_pgs_subtitle',
|
||||
'eia_608',
|
||||
'timed_id3',
|
||||
'subrip',
|
||||
'ass',
|
||||
'ssa',
|
||||
].includes(codecName)) {
|
||||
stream.removed = true;
|
||||
}
|
||||
}
|
||||
|
|
@ -92,6 +95,16 @@ var plugin = function (args) {
|
|||
}
|
||||
}
|
||||
}
|
||||
// handle gents if coming from odd container
|
||||
var container = args.inputFileObj.container.toLowerCase();
|
||||
if ([
|
||||
'ts',
|
||||
'avi',
|
||||
'mpg',
|
||||
'mpeg',
|
||||
].includes(container)) {
|
||||
args.variables.ffmpegCommand.overallOuputArguments.push('-fflags', '+genpts');
|
||||
}
|
||||
}
|
||||
return {
|
||||
outputFileObj: args.inputFileObj,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue