use aka titles
This commit is contained in:
parent
b22be542d7
commit
ddc1d1ef43
1 changed files with 6 additions and 1 deletions
|
@ -21,7 +21,7 @@ class Imdb(SiteParser):
|
|||
'page': 'releaseinfo',
|
||||
're': [
|
||||
'name="akas".*?<table.*?>(.*?)</table>',
|
||||
"td>(.*?)</td>\n\n<td>(.*?)</td>"
|
||||
"td>(.*?)</td>.*?<td>(.*?)</td>"
|
||||
],
|
||||
'type': 'list'
|
||||
|
||||
|
@ -204,6 +204,11 @@ class Imdb(SiteParser):
|
|||
self.baseUrl = "http://www.imdb.com/title/tt%s/" % id
|
||||
super(Imdb, self).__init__(timeout)
|
||||
|
||||
if 'alternative_titles' in self:
|
||||
for t, i in self['alternative_titles']:
|
||||
if 'imdb display title' in i:
|
||||
self['title'] = t
|
||||
|
||||
if 'title' in self and self['title'].startswith('"') and self['title'].endswith('"'):
|
||||
self['title'] = self['title'][1:-1]
|
||||
if 'runtime' in self and self['runtime']:
|
||||
|
|
Loading…
Reference in a new issue