summary refs log tree commit diff
diff options
context:
space:
mode:
authorRicardo Garcia <sarbalap+freshmeat@gmail.com>2009-08-02 12:18:52 +0200
committerRicardo Garcia <sarbalap+freshmeat@gmail.com>2010-10-31 11:24:43 +0100
commit18963a36b060526d89114fa019cd65e1fc425f9b (patch)
tree6ee5a876a48876d60f77025fef9b619d91abe4e2
parentdf1ceb1fd9d18b873ff3e6e2756e871cf1e394f8 (diff)
downloadyoutube-dl-18963a36b060526d89114fa019cd65e1fc425f9b.tar.gz
youtube-dl-18963a36b060526d89114fa019cd65e1fc425f9b.tar.xz
youtube-dl-18963a36b060526d89114fa019cd65e1fc425f9b.zip
Fix metacafe.com code due to recent changes in the site
-rwxr-xr-xyoutube-dl16
1 files changed, 9 insertions, 7 deletions
diff --git a/youtube-dl b/youtube-dl
index 5ca7f2519..6d0b32941 100755
--- a/youtube-dl
+++ b/youtube-dl
@@ -821,19 +821,21 @@ class MetacafeIE(InfoExtractor):
 
 		# Extract URL, uploader and title from webpage
 		self.report_extraction(video_id)
-		mobj = re.search(r'(?m)&mediaURL=(http.*?\.flv)', webpage)
+		mobj = re.search(r'(?m)&mediaURL=([^&]+)', webpage)
 		if mobj is None:
 			self._downloader.trouble(u'ERROR: unable to extract media URL')
 			return
 		mediaURL = urllib.unquote(mobj.group(1))
 
-		mobj = re.search(r'(?m)&gdaKey=(.*?)&', webpage)
-		if mobj is None:
-			self._downloader.trouble(u'ERROR: unable to extract gdaKey')
-			return
-		gdaKey = mobj.group(1)
+		#mobj = re.search(r'(?m)&gdaKey=(.*?)&', webpage)
+		#if mobj is None:
+		#	self._downloader.trouble(u'ERROR: unable to extract gdaKey')
+		#	return
+		#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)
 		if mobj is None: