fix parsing in pages
This commit is contained in:
parent
98fe88e1cd
commit
ad99fef5c2
2 changed files with 6 additions and 6 deletions
|
|
@ -84,8 +84,8 @@ class VideoPage(PornPage):
|
|||
else:
|
||||
v.author = unicode(author.text)
|
||||
elif name == 'Rating:':
|
||||
r = value.split()
|
||||
v.rating = int(r[0].rstrip('%'))
|
||||
value = li.find('span').text
|
||||
v.rating = int(value.rstrip('%'))
|
||||
v.rating_max = 100
|
||||
elif name == 'Date:':
|
||||
v.date = parse_dt(value)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue