ratings can not exist now
This commit is contained in:
parent
7df4cc4fa7
commit
9a6b6c8c49
1 changed files with 5 additions and 6 deletions
|
@ -177,12 +177,11 @@ def getMovieInfo(imdbId):
|
||||||
info['rating'] = -1
|
info['rating'] = -1
|
||||||
|
|
||||||
#Votes
|
#Votes
|
||||||
|
info['votes'] = -1
|
||||||
|
if "user rating" in info:
|
||||||
votes = findRe(info['user rating'], '([\d,]*?) votes')
|
votes = findRe(info['user rating'], '([\d,]*?) votes')
|
||||||
if votes:
|
if votes:
|
||||||
info['votes'] = int(votes.replace(',', ''))
|
info['votes'] = int(votes.replace(',', ''))
|
||||||
else:
|
|
||||||
info['votes'] = -1
|
|
||||||
|
|
||||||
return info
|
return info
|
||||||
|
|
||||||
def getMovieRuntimeSeconds(imdbId):
|
def getMovieRuntimeSeconds(imdbId):
|
||||||
|
|
Loading…
Reference in a new issue