use aka titles

This commit is contained in:
j 2010-10-08 17:43:25 +02:00
parent b22be542d7
commit ddc1d1ef43

View file

@ -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']: