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>',
|
'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']
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue