worldwide gross does not work like that
This commit is contained in:
parent
9333abbd1b
commit
e31e8b7e29
1 changed files with 0 additions and 14 deletions
|
@ -226,14 +226,6 @@ class Imdb(SiteParser):
|
|||
're': '<a href="ratings" class="tn15more">([\d,]*?) votes</a>',
|
||||
'type': 'string'
|
||||
},
|
||||
'worldwide_gross': {
|
||||
'page': 'business',
|
||||
're': [
|
||||
'\$([\d,]+?) \(Worldwide\)',
|
||||
lambda data: int(data.replace(',', '')),
|
||||
],
|
||||
'type': 'list'
|
||||
},
|
||||
'writers': {
|
||||
'page': 'combined',
|
||||
're': [
|
||||
|
@ -329,12 +321,6 @@ class Imdb(SiteParser):
|
|||
if key in self:
|
||||
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:
|
||||
self['profit'] = self['gross'] - self['budget']
|
||||
|
||||
|
|
Loading…
Reference in a new issue