update tvrss

This commit is contained in:
j 2007-03-02 20:44:43 +00:00
commit 0a8d0b2170
2 changed files with 53 additions and 27 deletions

View file

@ -170,9 +170,9 @@ class IMDb:
else:
IMDbDict['rating'] = -1
#Votes
m = re.compile('<small>\(<a href="ratings">(.*?) votes</a>\)</small>', re.IGNORECASE).search(data)
m = re.compile('<small>\(<a href="ratings">(.*?) votes</a>\)</small>', re.IGNORECASE).findall(data)
if m:
IMDbDict['votes'] = int(m.group(1).replace(',', ''))
IMDbDict['votes'] = int(m[0].replace(',', ''))
else:
IMDbDict['votes'] = -1