From 926b8ad2550a6bcde54bbd8f421172969f4b16a6 Mon Sep 17 00:00:00 2001 From: j Date: Tue, 18 Feb 2020 16:59:08 +0100 Subject: [PATCH] fight geolocalization --- ox/web/imdb.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ox/web/imdb.py b/ox/web/imdb.py index 272185b..fb109be 100644 --- a/ox/web/imdb.py +++ b/ox/web/imdb.py @@ -379,6 +379,9 @@ class Imdb(SiteParser): if 'alternativeTitles' in self: alt = {} + for t in self['alternativeTitles']: + if t[0].strip() in ('World-wide (English title)', ): + self['title'] = cleanup_title(t[1]) for t in self['alternativeTitles']: title = cleanup_title(t[1]) if title.lower() not in (self.get('title', '').lower(), self.get('originalTitle', '').lower()):