composer lists of lists

This commit is contained in:
j 2013-03-14 14:17:10 +05:30
parent f7186b936c
commit 89f868fc39

View file

@ -528,7 +528,7 @@ class Imdb(SiteParser):
self[key] = [x for i,x in enumerate(self[key]) self[key] = [x for i,x in enumerate(self[key])
if x not in self[key][i+1:]] if x not in self[key][i+1:]]
for key in ('actor', 'writer', 'producer', 'editor'): for key in ('actor', 'writer', 'producer', 'editor', 'composer'):
if key in self: if key in self:
if isinstance(self[key][0], list): if isinstance(self[key][0], list):
self[key] = [i[0] for i in self[key] if i] self[key] = [i[0] for i in self[key] if i]