some reviews get onclick foo now

This commit is contained in:
j 2009-10-23 17:16:09 +02:00
parent 1bd6615f16
commit 4ae7f6b382

View file

@ -390,7 +390,7 @@ def getMovieKeywords(imdbId):
def getMovieExternalReviews(imdbId): def getMovieExternalReviews(imdbId):
url = "%sexternalreviews" % getUrlBase(imdbId) url = "%sexternalreviews" % getUrlBase(imdbId)
data = readUrlUnicode(url) data = readUrlUnicode(url)
_reviews = re.compile('<li><a href="(.*?)">(.*?)</a></li>').findall(data) _reviews = re.compile('<li><a href="(.*?)".*?>(.*?)</a></li>').findall(data)
reviews = {} reviews = {}
for r in _reviews: for r in _reviews:
reviews[r[0]] = r[1] reviews[r[0]] = r[1]