mirror of
https://github.com/gabehf/Tdarr_Plugins.git
synced 2026-03-09 15:38:19 -07:00
Add error warning if no streams info (#298)
This commit is contained in:
parent
ba2dbf4470
commit
99ad3b334d
1 changed files with 5 additions and 0 deletions
|
|
@ -95,6 +95,11 @@ const plugin = (file, librarySettings, inputs, otherArguments) => {
|
|||
infoLog: '',
|
||||
};
|
||||
|
||||
if (!Array.isArray(file.ffProbeData.streams)) {
|
||||
throw new Error('FFprobe was unable to extract any streams info on this file.'
|
||||
+ 'This may be due to a corrupt file or permissions issue when scanning the file.');
|
||||
}
|
||||
|
||||
let { streams } = JSON.parse(JSON.stringify(file.ffProbeData));
|
||||
|
||||
streams.forEach((stream, index) => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue