dailymotion module: change in parsinges.py
Signed-off-by: Jean-Benoist Leger <leger@jblg.fr> Signed-off-by: Romain Bignon <romain@symlink.me>
This commit is contained in:
parent
c7195b48a2
commit
74578f2558
1 changed files with 1 additions and 1 deletions
|
|
@ -104,7 +104,7 @@ class VideoPage(BasePage):
|
||||||
if 'id' in script.attrib and script.attrib['id'].startswith('container_player_') and \
|
if 'id' in script.attrib and script.attrib['id'].startswith('container_player_') and \
|
||||||
script.find('script') is not None:
|
script.find('script') is not None:
|
||||||
text = script.find('script').text
|
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:
|
if mobj is None:
|
||||||
raise BrokenPageError('Unable to extract video url')
|
raise BrokenPageError('Unable to extract video url')
|
||||||
flashvars = urllib.unquote(mobj.group(1))
|
flashvars = urllib.unquote(mobj.group(1))
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue