fix aspectratio parsing

This commit is contained in:
j 2018-04-06 14:49:45 +05:30
parent 12326461c1
commit 09b3779c47

View file

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