mirror of
https://github.com/gabehf/Tdarr_Plugins.git
synced 2026-03-09 15:38:19 -07:00
Readded frame rate check
This commit is contained in:
parent
36e21d1b6a
commit
8d61fbda92
1 changed files with 2 additions and 2 deletions
|
|
@ -28,7 +28,7 @@ function details() {
|
|||
infoLog: '',
|
||||
};
|
||||
|
||||
if (file.ffProbeData.streams.filter((x) => x.codec_type === 'video').length) {
|
||||
if (file.ffProbeData.streams.filter((x) => x.codec_type === 'video' && x.avg_frame_rate !== '0/0').length) {
|
||||
response.infoLog += '☒File contains video!\n';
|
||||
return response;
|
||||
}
|
||||
|
|
@ -46,4 +46,4 @@ function details() {
|
|||
}
|
||||
|
||||
module.exports.details = details;
|
||||
module.exports.plugin = plugin;
|
||||
module.exports.plugin = plugin;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue