handle one alternative title
This commit is contained in:
parent
e77d0c9de1
commit
46791ba543
1 changed files with 3 additions and 0 deletions
|
@ -284,6 +284,9 @@ class Imdb(SiteParser):
|
||||||
self[t] = self[t][1:-1]
|
self[t] = self[t][1:-1]
|
||||||
|
|
||||||
if 'alternative_titles' in self:
|
if 'alternative_titles' in self:
|
||||||
|
if len(self['alternative_titles']) == 2 and \
|
||||||
|
isinstance(self['alternative_titles'][0], basestring):
|
||||||
|
self['alternative_titles'] = [self['alternative_titles']]
|
||||||
self['alternative_titles'] = [[t[0],
|
self['alternative_titles'] = [[t[0],
|
||||||
t[1].split(' / ')[0].split('(')[0].strip()]
|
t[1].split(' / ')[0].split('(')[0].strip()]
|
||||||
for t in self['alternative_titles']]
|
for t in self['alternative_titles']]
|
||||||
|
|
Loading…
Reference in a new issue