make language unique, fixes #1280

This commit is contained in:
j 2013-02-20 09:46:34 +05:30
parent 1b13c7cb00
commit 8609e6e9f4

View file

@ -497,7 +497,7 @@ class Imdb(SiteParser):
self['director'] = self['creator']
#make lists unique but keep order
for key in ('director',):
for key in ('director', 'language'):
if key in self:
self[key] = [x for i,x in enumerate(self[key])
if x not in self[key][i+1:]]