Fix conditional assignment

This commit is contained in:
Labrys of Knossos 2018-12-31 12:28:15 -05:00
parent 6d0d2d3f7e
commit 93ec74f1c7

View file

@ -80,10 +80,7 @@ def get_video_details(videofile, img=None, bitbucket=None):
file = videofile
if not core.FFPROBE:
return video_details, result
if 'avprobe' in core.FFPROBE:
print_format = '-of'
else:
print_format = '-print_format'
print_format = '-of' if 'avprobe' in core.FFPROBE else '-print_format'
try:
if img:
videofile = '-'