mirror of
https://github.com/gabehf/Tdarr_Plugins.git
synced 2026-03-09 23:48:15 -07:00
Update flows
This commit is contained in:
parent
658857fdf4
commit
25c4fab8d9
73 changed files with 4295 additions and 839 deletions
|
|
@ -47,12 +47,13 @@ var plugin = function (args) {
|
|||
// eslint-disable-next-line @typescript-eslint/no-unused-vars,no-param-reassign
|
||||
args.inputs = lib.loadDefaultValues(args.inputs, details);
|
||||
var hasCodec = false;
|
||||
// @ts-expect-error type
|
||||
args.inputFileObj.ffProbeData.streams.forEach(function (stream) {
|
||||
if (stream.codec_type === 'video' && stream.codec_name === args.inputs.codec) {
|
||||
hasCodec = true;
|
||||
}
|
||||
});
|
||||
if (args.inputFileObj.ffProbeData.streams) {
|
||||
args.inputFileObj.ffProbeData.streams.forEach(function (stream) {
|
||||
if (stream.codec_type === 'video' && stream.codec_name === args.inputs.codec) {
|
||||
hasCodec = true;
|
||||
}
|
||||
});
|
||||
}
|
||||
return {
|
||||
outputFileObj: args.inputFileObj,
|
||||
outputNumber: hasCodec ? 1 : 2,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue