videos are now hosted on another domain

This commit is contained in:
Roger Philibert 2015-04-17 14:44:27 +02:00 committed by Romain Bignon
commit 023700b315

View file

@ -43,7 +43,7 @@ class VideoPage(HTMLPage):
response = self.page.browser.open('http://www.youjizz.com/videos/embed/%s' % real_id)
data = response.text
video_file_urls = re.findall(r'"(http://[^",]+\.youjizz\.com[^",]+\.flv(?:\?[^"]*)?)"', data)
video_file_urls = re.findall(r'"(http://[^",]+\.yjcontentdelivery.com[^",]+\.flv(?:\?[^"]*)?)"', data)
if len(video_file_urls) == 0:
raise ValueError('Video URL not found')
elif len(video_file_urls) > 1: