diff options
author | Ricardo Garcia <[email protected]> | 2010-04-01 20:46:00 +0200 |
---|---|---|
committer | Ricardo Garcia <[email protected]> | 2010-10-31 11:26:48 +0100 |
commit | 2ed1ddd0a0dd73f69b3b7f1fc9102fdc028735aa (patch) | |
tree | 1770781679fcbd2c29210c9bc5fadc4700e17ea9 | |
parent | eaf4a7288dc285f10cd5745432129be29cf770a3 (diff) | |
download | youtube-dl-2ed1ddd0a0dd73f69b3b7f1fc9102fdc028735aa.tar.gz youtube-dl-2ed1ddd0a0dd73f69b3b7f1fc9102fdc028735aa.zip |
Request video info webpage using "embedded" instead of "detailpage"
In the request for get_video_info, use el=embedded instead of el=detailpage, as
if the request was coming from an embedded video player instead of the video
webpage. This created problems for some videos, with YouTube replying with
"Invalid parameters". This fixes issue #109 and fixes issue #110.
-rwxr-xr-x | youtube-dl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/youtube-dl b/youtube-dl index 5afd7ebc2..167fefcc0 100755 --- a/youtube-dl +++ b/youtube-dl @@ -783,7 +783,7 @@ class YoutubeIE(InfoExtractor): video_extension = self._video_extensions.get(format_param, 'flv') # Get video info - video_info_url = 'http://www.youtube.com/get_video_info?&video_id=%s&el=detailpage&ps=default&eurl=&gl=US&hl=en' % video_id + video_info_url = 'http://www.youtube.com/get_video_info?&video_id=%s&el=embedded&ps=default&eurl=&gl=US&hl=en' % video_id request = urllib2.Request(video_info_url, None, std_headers) try: self.report_video_info_webpage_download(video_id) |