mirror of
https://github.com/l1ving/youtube-dl
synced 2025-03-14 07:57:15 +08: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
@ -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…
x
Reference in New Issue
Block a user