From 9b6d87f3e55f4ae4a081b9aee4170879b71e4c1b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Revol?= Date: Sat, 14 Sep 2013 11:34:23 +0200 Subject: [PATCH] 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. --- modules/dailymotion/pages.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/dailymotion/pages.py b/modules/dailymotion/pages.py index dd56103f..f6257188 100644 --- a/modules/dailymotion/pages.py +++ b/modules/dailymotion/pages.py @@ -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')