fix finding the video url

This commit is contained in:
Romain Bignon 2012-01-01 15:56:45 +01:00
commit 0df2ef3466

View file

@ -54,7 +54,7 @@ class VideoPage(BasePage):
else:
raise BrokenPageError('Unable to retrieve video duration')
video_file_urls = re.findall(r'"(http://[^\.",]+\.youjizz\.com[^",]+\.flv)"', data)
video_file_urls = re.findall(r'"(http://[^",]+\.youjizz\.com[^",]+\.flv)[\?"]', data)
if len(video_file_urls) == 0:
raise BrokenPageError('Video URL not found')
elif len(video_file_urls) > 1: