fix when URL contains spaces
This commit is contained in:
parent
3110a1cd5a
commit
f6e1dd92d5
1 changed files with 1 additions and 1 deletions
|
|
@ -54,7 +54,7 @@ class VideoPage(BasePage):
|
||||||
else:
|
else:
|
||||||
raise BrokenPageError('Unable to retrieve video duration')
|
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:
|
if len(video_file_urls) == 0:
|
||||||
raise BrokenPageError('Video URL not found')
|
raise BrokenPageError('Video URL not found')
|
||||||
elif len(video_file_urls) > 1:
|
elif len(video_file_urls) > 1:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue