mirror of
https://github.com/gabehf/Tdarr_Plugins.git
synced 2026-03-11 00:10:29 -07:00
Update flows
This commit is contained in:
parent
658857fdf4
commit
25c4fab8d9
73 changed files with 4295 additions and 839 deletions
|
|
@ -52,12 +52,13 @@ const plugin = (args:IpluginInputArgs):IpluginOutputArgs => {
|
|||
|
||||
let hasCodec = false;
|
||||
|
||||
// @ts-expect-error type
|
||||
args.inputFileObj.ffProbeData.streams.forEach((stream) => {
|
||||
if (stream.codec_type === 'video' && stream.codec_name === args.inputs.codec) {
|
||||
hasCodec = true;
|
||||
}
|
||||
});
|
||||
if (args.inputFileObj.ffProbeData.streams) {
|
||||
args.inputFileObj.ffProbeData.streams.forEach((stream) => {
|
||||
if (stream.codec_type === 'video' && stream.codec_name === args.inputs.codec) {
|
||||
hasCodec = true;
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
return {
|
||||
outputFileObj: args.inputFileObj,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue