From e31e8b7e29d623606d39a07d5c977cd5bedd9b6e Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Tue, 9 Aug 2011 10:34:26 +0200 Subject: [PATCH] worldwide gross does not work like that --- ox/web/imdb.py | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/ox/web/imdb.py b/ox/web/imdb.py index ecba5c7..4448845 100644 --- a/ox/web/imdb.py +++ b/ox/web/imdb.py @@ -226,14 +226,6 @@ class Imdb(SiteParser): 're': '([\d,]*?) votes', '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']