Commit bb820c01 authored by Romain Bignon's avatar Romain Bignon

fix when URL contains spaces

parent 4ecb58a8
......@@ -54,7 +54,7 @@ class VideoPage(BasePage):
else:
raise BrokenPageError('Unable to retrieve video duration')
video_file_urls = re.findall(r'"(http://media[^ ,]+\.flv)"', data)
video_file_urls = re.findall(r'"(http://media[^",]+\.flv)"', data)
if len(video_file_urls) == 0:
raise BrokenPageError('Video URL not found')
elif len(video_file_urls) > 1:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment