aspect ratio 3:00
This commit is contained in:
parent
9e3c8291b6
commit
2b45d6932b
1 changed files with 4 additions and 1 deletions
|
@ -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:
|
||||||
value = str(float(n) / float(d))
|
if 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:
|
||||||
|
|
Loading…
Reference in a new issue