remove empty alternative titles
This commit is contained in:
parent
a79b2a6134
commit
1272e70891
1 changed files with 2 additions and 0 deletions
|
@ -355,6 +355,8 @@ class Imdb(SiteParser):
|
||||||
for t in sorted(alt, lambda a, b: cmp(sorted(alt[a]), sorted(alt[b]))):
|
for t in sorted(alt, lambda a, b: cmp(sorted(alt[a]), sorted(alt[b]))):
|
||||||
if alt[t]:
|
if alt[t]:
|
||||||
self['alternativeTitles'].append((t, sorted(alt[t])))
|
self['alternativeTitles'].append((t, sorted(alt[t])))
|
||||||
|
if not self['alternativeTitles']:
|
||||||
|
del self['alternativeTitles']
|
||||||
|
|
||||||
if 'runtime' in self and self['runtime']:
|
if 'runtime' in self and self['runtime']:
|
||||||
if 'min' in self['runtime']: base=60
|
if 'min' in self['runtime']: base=60
|
||||||
|
|
Loading…
Reference in a new issue