parse votes
This commit is contained in:
parent
5e224d3cdb
commit
ba14fc371a
1 changed files with 1 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue