only $ bugets

This commit is contained in:
j 2011-10-30 15:34:59 +01:00
parent 78d8f8cc0b
commit 7f6e118e6e

View file

@ -53,7 +53,7 @@ class Imdb(SiteParser):
'budget': { 'budget': {
'page': 'business', 'page': 'business',
're': [ 're': [
'<h5>Budget</h5>(.*?)<br', '<h5>Budget</h5>\s*?\$(.*?)<br',
lambda data: findRe(ox.decodeHtml(data).replace(',', ''), '\d+') lambda data: findRe(ox.decodeHtml(data).replace(',', ''), '\d+')
], ],
'type': 'int' 'type': 'int'
@ -141,7 +141,7 @@ class Imdb(SiteParser):
'gross': { 'gross': {
'page': 'business', 'page': 'business',
're': [ 're': [
'<h5>Gross</h5>(.*?)\(', '<h5>Gross</h5>\s*?\$(.*?)<br',
lambda data: findRe(data.replace(',', ''), '\d+') lambda data: findRe(data.replace(',', ''), '\d+')
], ],
'type': 'int' 'type': 'int'