1
0
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:
Louis 2012-08-28 19:13:13 +03:00
parent 9bb8dc8e42
commit eb6cf05f2a

View File

@ -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))