0
0
Fork 0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2024-12-22 06:00:00 +00:00

Merged, modified and compiled Dailymotion pull request #446 by @Steap

This commit is contained in:
Filippo Valsorda 2012-09-30 21:45:43 +02:00
parent 63ec7b7479
commit 13e69f546c
3 changed files with 2 additions and 2 deletions

Binary file not shown.

Binary file not shown.

View file

@ -637,7 +637,7 @@ def _real_extract(self, url):
self._downloader.trouble(u'ERROR: invalid URL: %s' % url)
return
video_id = mobj.group(1)
video_id = mobj.group(1).split('_')[0].split('?')[0]
video_extension = 'mp4'
@ -663,7 +663,7 @@ def _real_extract(self, url):
else: max_quality = 'ldURL'
mobj = re.search(r'"' + max_quality + r'":"(.+?)"', flashvars)
if mobj is None:
mobj = re.search(r'"video_url":"(.*?)",', urllib.unquote(webpage))
mobj = re.search(r'"video_url":"(.*?)",', flashvars)
if mobj is None:
self._downloader.trouble(u'ERROR: unable to extract media URL')
return