浏览代码

Also try no "el" option in get_video_info (fixes issue #130)

Ricardo Garcia 15 年之前
父节点
当前提交
787f2a5d95
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      youtube-dl

+ 2 - 2
youtube-dl

@@ -804,8 +804,8 @@ class YoutubeIE(InfoExtractor):
 
 
 			# Get video info
 			# Get video info
 			self.report_video_info_webpage_download(video_id)
 			self.report_video_info_webpage_download(video_id)
-			for el_type in ['embedded', 'detailpage', 'vevo']:
-				video_info_url = ('http://www.youtube.com/get_video_info?&video_id=%s&el=%s&ps=default&eurl=&gl=US&hl=en'
+			for el_type in ['&el=embedded', '&el=detailpage', '&el=vevo', '']:
+				video_info_url = ('http://www.youtube.com/get_video_info?&video_id=%s%s&ps=default&eurl=&gl=US&hl=en'
 						   % (video_id, el_type))
 						   % (video_id, el_type))
 				request = urllib2.Request(video_info_url, None, std_headers)
 				request = urllib2.Request(video_info_url, None, std_headers)
 				try:
 				try: