[weboob] [PATCH 1/1] dailymotion module: change in parsinges.py

Jean-Benoist Leger leger at jblg.fr
Wed Aug 28 22:05:58 CEST 2013


Signed-off-by: Jean-Benoist Leger <leger at jblg.fr>
---
 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 2ef8abc..57195d1 100644
--- a/modules/dailymotion/pages.py
+++ b/modules/dailymotion/pages.py
@@ -104,7 +104,7 @@ class VideoPage(BasePage):
             if 'id' in script.attrib and script.attrib['id'].startswith('container_player_') and \
                script.find('script') is not None:
                 text = script.find('script').text
-                mobj = re.search(r'\s*var flashvars = (.*)', text)
+                mobj = re.search(r'<param name="flashvars" value="(.*)"', text)
                 if mobj is None:
                     raise BrokenPageError('Unable to extract video url')
                 flashvars = urllib.unquote(mobj.group(1))
-- 
1.8.3.4



More information about the weboob mailing list