fix aspect ratio parsing
This commit is contained in:
parent
eb7158dae1
commit
4905a8e48d
1 changed files with 1 additions and 1 deletions
|
@ -94,7 +94,7 @@ class Imdb(SiteParser):
|
||||||
'page': 'reference',
|
'page': 'reference',
|
||||||
're': [
|
'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,
|
lambda r: str(float(r.split(':')[0])/float(r.split(':')[1].split(' ')[0])) if ':' in r else r,
|
||||||
],
|
],
|
||||||
'type': 'float',
|
'type': 'float',
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue