titles without countries
This commit is contained in:
parent
b147c61f5c
commit
5bf53ba463
2 changed files with 4 additions and 5 deletions
|
|
@ -476,9 +476,8 @@ class Imdb(SiteParser):
|
|||
alt[title].append(c)
|
||||
self['alternativeTitles'] = []
|
||||
for t in sorted(alt, key=lambda a: sorted(alt[a])):
|
||||
if alt[t]:
|
||||
countries = sorted([normalize_country_name(c) or c for c in alt[t]])
|
||||
self['alternativeTitles'].append((t, countries))
|
||||
countries = sorted([normalize_country_name(c) or c for c in alt[t]])
|
||||
self['alternativeTitles'].append((t, countries))
|
||||
if not self['alternativeTitles']:
|
||||
del self['alternativeTitles']
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue