mirror of
https://github.com/ytdl-org/youtube-dl.git
synced 2025-08-22 14:24:03 -07:00
new dailymotion regexp to retrieve media url
due to change in Dailymotion webpage since early august 2012 should close issue 393
This commit is contained in:
parent
9bb8dc8e42
commit
eb6cf05f2a
1 changed files with 3 additions and 0 deletions
|
@ -631,6 +631,9 @@ class DailymotionIE(InfoExtractor):
|
|||
self.report_extraction(video_id)
|
||||
mobj = re.search(r'(?i)addVariable\(\"sequence\"\s*,\s*\"([^\"]+?)\"\)', webpage)
|
||||
if mobj is None:
|
||||
mobj = re.search(r'"video_url":"(.*?)",', urllib.unquote(webpage))
|
||||
if mobj:
|
||||
return urllib.unquote(mobj.group(1))
|
||||
self._downloader.trouble(u'ERROR: unable to extract media URL')
|
||||
return
|
||||
sequence = urllib.unquote(mobj.group(1))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue