dailymotion: try to fix getting the full JSON data
http://www.dailymotion.com/video/xtcsln for ex. has some sublists which weren't cought correctly.
This commit is contained in:
parent
93129f5aed
commit
9b6d87f3e5
1 changed files with 1 additions and 1 deletions
|
|
@ -98,7 +98,7 @@ class VideoPage(BasePage):
|
|||
|
||||
embed_page = self.browser.readurl('http://www.dailymotion.com/embed/video/%s' % video.id)
|
||||
|
||||
m = re.search('var info = ({.*?}),', embed_page)
|
||||
m = re.search('var info = ({.*?}),[^{"]', embed_page)
|
||||
if not m:
|
||||
raise BrokenPageError('Unable to find information about video')
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue