aspect ratio 3:00

This commit is contained in:
j 2018-09-13 08:40:35 +02:00
parent 9e3c8291b6
commit 2b45d6932b

View file

@ -80,7 +80,10 @@ def parse_aspectratio(value):
n = r[0] n = r[0]
d = r[1].strip().split(' ')[0] d = r[1].strip().split(' ')[0]
try: try:
if float(d):
value = str(float(n) / float(d)) value = str(float(n) / float(d))
else:
value = str(float(n))
except: except:
print('failed to parse aspect: %s' % value) print('failed to parse aspect: %s' % value)
else: else: