fix parsing details
This commit is contained in:
parent
e622246df4
commit
c4b4a6c29e
1 changed files with 2 additions and 2 deletions
|
|
@ -56,12 +56,12 @@ class VideoPage(PornPage):
|
||||||
return unicode(a.attrib['href']), unicode(ext)
|
return unicode(a.attrib['href']), unicode(ext)
|
||||||
|
|
||||||
def get_title(self):
|
def get_title(self):
|
||||||
element = self.parser.select(self.document.getroot(), '#videoCanvas h1', 1)
|
element = self.parser.select(self.document.getroot(), 'h1', 1)
|
||||||
return element.text.strip().decode('utf-8')
|
return element.text.strip().decode('utf-8')
|
||||||
|
|
||||||
def set_details(self, v):
|
def set_details(self, v):
|
||||||
for li in self.parser.select(self.document.getroot(), 'ul.spaced li'):
|
for li in self.parser.select(self.document.getroot(), 'ul.spaced li'):
|
||||||
span = li.find('b')
|
span = li.find('label')
|
||||||
name = span.text.strip()
|
name = span.text.strip()
|
||||||
value = span.tail.strip()
|
value = span.tail.strip()
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue