From c5414c6b892a8b7006db97537274b919b6f91a2f Mon Sep 17 00:00:00 2001 From: j Date: Sun, 14 Jan 2018 18:48:39 +0100 Subject: [PATCH] fix sound --- ox/web/imdb.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ox/web/imdb.py b/ox/web/imdb.py index a621471..4fb983b 100644 --- a/ox/web/imdb.py +++ b/ox/web/imdb.py @@ -198,7 +198,7 @@ class Imdb(SiteParser): #}, 'runtime': zebra_list('Runtime'), 'color': zebra_list('Color', more=['(.*?)']), - 'sound': zebra_list('Sound Mix', more=['(.*?)', lambda x: x[0]]), + 'sound': zebra_list('Sound Mix', more=['(.*?)']), '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]))