mirror of
https://github.com/ytdl-org/youtube-dl.git
synced 2024-11-25 19:52:11 +00:00
Fix metacafe.com code not working due to gdaKey again (fixes issue #185)
This commit is contained in:
parent
204c9398ab
commit
109626fcc0
1 changed files with 9 additions and 9 deletions
14
youtube-dl
14
youtube-dl
|
@ -1039,15 +1039,15 @@ class MetacafeIE(InfoExtractor):
|
|||
return
|
||||
mediaURL = urllib.unquote(mobj.group(1))
|
||||
|
||||
#mobj = re.search(r'(?m)&gdaKey=(.*?)&', webpage)
|
||||
#if mobj is None:
|
||||
# Extract gdaKey if available
|
||||
mobj = re.search(r'(?m)&gdaKey=(.*?)&', webpage)
|
||||
if mobj is None:
|
||||
video_url = mediaURL
|
||||
#self._downloader.trouble(u'ERROR: unable to extract gdaKey')
|
||||
#return
|
||||
#gdaKey = mobj.group(1)
|
||||
#
|
||||
#video_url = '%s?__gda__=%s' % (mediaURL, gdaKey)
|
||||
|
||||
video_url = mediaURL
|
||||
else:
|
||||
gdaKey = mobj.group(1)
|
||||
video_url = '%s?__gda__=%s' % (mediaURL, gdaKey)
|
||||
|
||||
mobj = re.search(r'(?im)<title>(.*) - Video</title>', webpage)
|
||||
if mobj is None:
|
||||
|
|
Loading…
Reference in a new issue