fix sound
This commit is contained in:
parent
da379a9c6c
commit
c5414c6b89
1 changed files with 2 additions and 2 deletions
|
@ -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]))
|
||||
|
|
Loading…
Reference in a new issue