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:
François Revol 2013-09-14 11:34:23 +02:00 committed by Florent
commit 9b6d87f3e5

View file

@ -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')