parse votes

This commit is contained in:
j 2009-04-11 18:04:49 +02:00
parent 5e224d3cdb
commit ba14fc371a

View file

@ -161,7 +161,7 @@ def getMovieInfo(imdbId):
info['rating'] = -1
#Votes
votes = findRe(data, '<small>\(<a href="ratings">(.*?) votes</a>\)</small>')
votes = findRe(info['user rating'], '([\d,]*?) votes')
if votes:
info['votes'] = int(votes.replace(',', ''))
else: