Now doesn't fail with AVPROBE or FFPROBE if a file doesn't have streams
This commit is contained in:
parent
0a437b5bbb
commit
f765450864
4 changed files with 10 additions and 1 deletions
|
|
@ -88,6 +88,9 @@ class avprobe(devede.executor.executor):
|
|||
except:
|
||||
return True # There was an error reading the JSON data
|
||||
|
||||
if not("streams" in video_data):
|
||||
return True # There are no streams!!!!!
|
||||
|
||||
for element in video_data["streams"]:
|
||||
|
||||
if (self.original_length == -1) and ("duration" in element):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue