fix aspect ratio

This commit is contained in:
j 2018-01-26 08:49:33 +01:00
parent e2e012c8f1
commit 133262ba5b

View file

@ -92,7 +92,10 @@ class Imdb(SiteParser):
},
'aspectratio': {
'page': 'reference',
're': 'Aspect Ratio</td>.*?ipl-inline-list__item">\s+([\d\.]+)',
're': [
'Aspect Ratio</td>.*?ipl-inline-list__item">\s+([\d\.\:]+)',
lambda r: str(int(r.split(':')[0])/int(r.split(':')[1])) if ':' in r else r,
],
'type': 'float',
},
'budget': zebra_table('Budget', more=[