1
0
mirror of https://codeberg.org/polarisfm/youtube-dl synced 2024-11-26 18:34:32 +01:00

Fix metacafe.com code not working due to gdaKey again (fixes issue #185)

This commit is contained in:
Ricardo Garcia 2010-08-04 19:05:53 +02:00
parent 204c9398ab
commit 109626fcc0

View File

@ -1039,15 +1039,15 @@ class MetacafeIE(InfoExtractor):
return return
mediaURL = urllib.unquote(mobj.group(1)) mediaURL = urllib.unquote(mobj.group(1))
#mobj = re.search(r'(?m)&gdaKey=(.*?)&', webpage) # Extract gdaKey if available
#if mobj is None: mobj = re.search(r'(?m)&gdaKey=(.*?)&', webpage)
if mobj is None:
video_url = mediaURL
#self._downloader.trouble(u'ERROR: unable to extract gdaKey') #self._downloader.trouble(u'ERROR: unable to extract gdaKey')
#return #return
#gdaKey = mobj.group(1) else:
# gdaKey = mobj.group(1)
#video_url = '%s?__gda__=%s' % (mediaURL, gdaKey) video_url = '%s?__gda__=%s' % (mediaURL, gdaKey)
video_url = mediaURL
mobj = re.search(r'(?im)<title>(.*) - Video</title>', webpage) mobj = re.search(r'(?im)<title>(.*) - Video</title>', webpage)
if mobj is None: if mobj is None: