Also try no "el" option in get_video_info (fixes issue #130)
authorRicardo Garcia <sarbalap+freshmeat@gmail.com>
Fri, 21 May 2010 19:24:37 +0000 (21:24 +0200)
committerRicardo Garcia <sarbalap+freshmeat@gmail.com>
Sun, 31 Oct 2010 10:27:01 +0000 (11:27 +0100)
youtube-dl

index 72b09a0..0f1d31c 100755 (executable)
@@ -804,8 +804,8 @@ class YoutubeIE(InfoExtractor):
 
                        # Get video info
                        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))
                                request = urllib2.Request(video_info_url, None, std_headers)
                                try: