fix parsing duration

This commit is contained in:
Romain Bignon 2012-09-12 15:08:23 +02:00
commit 9799912902

View file

@ -43,7 +43,7 @@ class VideoPage(BasePage):
# youjizz HTML is crap, we must parse it with regexps
data = lxml.html.tostring(self.document.getroot())
m = re.search(r'<strong>.*?Runtime.*?</strong> (.+?)<br.*>', data)
m = re.search(r'<strong>.*?Runtime.*?</strong> (.+?)</div>', data)
if m:
txt = m.group(1).strip()
if txt == 'Unknown':