fight geolocalization

This commit is contained in:
j 2020-02-18 16:59:08 +01:00
parent 09e0a521af
commit 926b8ad255

View file

@ -379,6 +379,9 @@ class Imdb(SiteParser):
if 'alternativeTitles' in self: if 'alternativeTitles' in self:
alt = {} 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']: for t in self['alternativeTitles']:
title = cleanup_title(t[1]) title = cleanup_title(t[1])
if title.lower() not in (self.get('title', '').lower(), self.get('originalTitle', '').lower()): if title.lower() not in (self.get('title', '').lower(), self.get('originalTitle', '').lower()):