From 4905a8e48d0983b2f19fba79d5fc9d9997dd4f28 Mon Sep 17 00:00:00 2001 From: j Date: Tue, 1 May 2018 11:43:34 +0200 Subject: [PATCH] fix aspect ratio parsing --- ox/web/imdb.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ox/web/imdb.py b/ox/web/imdb.py index 1c5c9d3..c8e909b 100644 --- a/ox/web/imdb.py +++ b/ox/web/imdb.py @@ -94,7 +94,7 @@ class Imdb(SiteParser): 'page': 'reference', 're': [ 'Aspect Ratio.*?ipl-inline-list__item">\s+([\d\.\:\ ]+)', - lambda r: str(float(r.split(':')[0])/float(r.split(':')[1])) if ':' in r else r, + lambda r: str(float(r.split(':')[0])/float(r.split(':')[1].split(' ')[0])) if ':' in r else r, ], 'type': 'float', },