ratings can not exist now

This commit is contained in:
j 2009-08-20 21:50:07 +02:00
parent 7df4cc4fa7
commit 9a6b6c8c49

View file

@ -177,12 +177,11 @@ def getMovieInfo(imdbId):
info['rating'] = -1 info['rating'] = -1
#Votes #Votes
votes = findRe(info['user rating'], '([\d,]*?) votes') info['votes'] = -1
if votes: if "user rating" in info:
info['votes'] = int(votes.replace(',', '')) votes = findRe(info['user rating'], '([\d,]*?) votes')
else: if votes:
info['votes'] = -1 info['votes'] = int(votes.replace(',', ''))
return info return info
def getMovieRuntimeSeconds(imdbId): def getMovieRuntimeSeconds(imdbId):