update imdb.movieconnections

This commit is contained in:
j 2015-10-12 13:56:25 +02:00
parent 7c9887410c
commit 4b3af0cbaf

View file

@ -74,7 +74,7 @@ class Imdb(SiteParser):
'type': 'list'
},
'connections': {
'page': 'trivia?tab=mc',
'page': 'movieconnections',
're': '<h4 class="li_group">(.*?)</h4>(.*?)(<\/div>\n <a|<script)',
'type': 'list'
},
@ -520,7 +520,7 @@ class Imdb(SiteParser):
if len(description) == 2 and description[-1].strip() != '-':
r['description'] = description[-1].strip()
return r
cc[rel] = list(map(get_conn, re.compile('<a href="/title/tt(\d{7})/">(.*?)</a>(.*?)<\/div', re.DOTALL).findall(data)))
cc[rel] = list(map(get_conn, re.compile('<a href="/title/tt(\d{7})/?">(.*?)</a>(.*?)<\/div', re.DOTALL).findall(data)))
self['connections'] = cc