fix sound

This commit is contained in:
j 2018-01-14 18:48:39 +01:00
parent da379a9c6c
commit c5414c6b89

View file

@ -198,7 +198,7 @@ class Imdb(SiteParser):
#},
'runtime': zebra_list('Runtime'),
'color': zebra_list('Color', more=['<a.*?>(.*?)</a>']),
'sound': zebra_list('Sound Mix', more=['<a.*?>(.*?)</a>', lambda x: x[0]]),
'sound': zebra_list('Sound Mix', more=['<a.*?>(.*?)</a>']),
'season': {
'page': 'reference',
@ -289,7 +289,7 @@ class Imdb(SiteParser):
isinstance(self['alternativeTitles'][0], string_types):
self['alternativeTitles'] = [self['alternativeTitles']]
for key in ('country', 'genre', 'language'):
for key in ('country', 'genre', 'language', 'sound'):
if key in self:
self[key] = [x[0] if len(x) == 1 and isinstance(x, list) else x for x in self[key]]
self[key] = list(filter(lambda x: x.lower() != 'home', self[key]))