dont throw exception for invalid files

This commit is contained in:
j 2014-12-24 23:18:29 +01:00
parent 75e0ec06f9
commit f02d42712d

View file

@ -219,6 +219,9 @@ def ffprobe(filename):
return value
info = {}
if not 'format' in ffinfo:
info['error'] = 'badfile'
else:
for key in ('duration', 'size', 'bit_rate'):
info[{
'bit_rate': 'bitrate'