update imdb.movieconnections
This commit is contained in:
parent
7c9887410c
commit
4b3af0cbaf
1 changed files with 2 additions and 2 deletions
|
@ -74,7 +74,7 @@ class Imdb(SiteParser):
|
||||||
'type': 'list'
|
'type': 'list'
|
||||||
},
|
},
|
||||||
'connections': {
|
'connections': {
|
||||||
'page': 'trivia?tab=mc',
|
'page': 'movieconnections',
|
||||||
're': '<h4 class="li_group">(.*?)</h4>(.*?)(<\/div>\n <a|<script)',
|
're': '<h4 class="li_group">(.*?)</h4>(.*?)(<\/div>\n <a|<script)',
|
||||||
'type': 'list'
|
'type': 'list'
|
||||||
},
|
},
|
||||||
|
@ -520,7 +520,7 @@ class Imdb(SiteParser):
|
||||||
if len(description) == 2 and description[-1].strip() != '-':
|
if len(description) == 2 and description[-1].strip() != '-':
|
||||||
r['description'] = description[-1].strip()
|
r['description'] = description[-1].strip()
|
||||||
return r
|
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
|
self['connections'] = cc
|
||||||
|
|
Loading…
Reference in a new issue