worldwide gross does not work like that

This commit is contained in:
j 2011-08-09 10:34:26 +02:00
parent 9333abbd1b
commit e31e8b7e29

View file

@ -226,14 +226,6 @@ class Imdb(SiteParser):
're': '<a href="ratings" class="tn15more">([\d,]*?) votes</a>', 're': '<a href="ratings" class="tn15more">([\d,]*?) votes</a>',
'type': 'string' 'type': 'string'
}, },
'worldwide_gross': {
'page': 'business',
're': [
'\$([\d,]+?) \(Worldwide\)',
lambda data: int(data.replace(',', '')),
],
'type': 'list'
},
'writers': { 'writers': {
'page': 'combined', 'page': 'combined',
're': [ 're': [
@ -329,12 +321,6 @@ class Imdb(SiteParser):
if key in self: if key in self:
del self[key] del self[key]
if 'worldwide_gross' in self:
if not 'gross' in self:
self['gross'] = 0
self['gross'] += max(self['worldwide_gross'])
del self['worldwide_gross']
if 'budget' in self and 'gross' in self: if 'budget' in self and 'gross' in self:
self['profit'] = self['gross'] - self['budget'] self['profit'] = self['gross'] - self['budget']