From 2b45d6932bd1749f2f21bd650ba7b18f19a0e0ad Mon Sep 17 00:00:00 2001 From: j Date: Thu, 13 Sep 2018 08:40:35 +0200 Subject: [PATCH] aspect ratio 3:00 --- ox/web/imdb.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ox/web/imdb.py b/ox/web/imdb.py index 57b2423..6c5ae90 100644 --- a/ox/web/imdb.py +++ b/ox/web/imdb.py @@ -80,7 +80,10 @@ def parse_aspectratio(value): n = r[0] d = r[1].strip().split(' ')[0] try: - value = str(float(n) / float(d)) + if float(d): + value = str(float(n) / float(d)) + else: + value = str(float(n)) except: print('failed to parse aspect: %s' % value) else: