summary refs log tree commit diff
diff options
context:
space:
mode:
authorRicardo Garcia <sarbalap+freshmeat@gmail.com>2010-12-09 19:22:32 +0100
committerRicardo Garcia <sarbalap+freshmeat@gmail.com>2010-12-09 19:22:32 +0100
commitd157d2597a5fe99db60304fe1e89523de78b7981 (patch)
treedea30ef567c0c66259f76552df5c29f23b8b621d
parente567ef93d8833a566f063bab9f9ee2310a131ab1 (diff)
downloadyoutube-dl-d157d2597a5fe99db60304fe1e89523de78b7981.tar.gz
youtube-dl-d157d2597a5fe99db60304fe1e89523de78b7981.tar.xz
youtube-dl-d157d2597a5fe99db60304fe1e89523de78b7981.zip
Fix YoutubeIE after recent YouTube changes (closes #34)
-rwxr-xr-xyoutube-dl4
1 files changed, 2 insertions, 2 deletions
diff --git a/youtube-dl b/youtube-dl
index d60fa60c9..415cf7073 100755
--- a/youtube-dl
+++ b/youtube-dl
@@ -955,9 +955,9 @@ class YoutubeIE(InfoExtractor):
 				self._downloader.trouble(u'ERROR: no known formats available for video')
 				return
 			if requested_format is None:
-				video_url_list = [(existing_formats[0], get_video_template % existing_formats[0])] # Best quality
+				video_url_list = [(existing_formats[0], url_map[existing_formats[0]])] # Best quality
 			elif requested_format == '-1':
-				video_url_list = [(f, get_video_template % f) for f in existing_formats] # All formats
+				video_url_list = [(f, url_map[f]) for f in existing_formats] # All formats
 			else:
 				video_url_list = [(requested_format, get_video_template % requested_format)] # Specific format