Minor adjustments to closely match what a web browser does
This commit is contained in:
parent
c8619e0163
commit
9cee6d9035
|
@ -578,6 +578,8 @@ class YoutubeIE(InfoExtractor):
|
||||||
if self._downloader is not None:
|
if self._downloader is not None:
|
||||||
params = self._downloader.params
|
params = self._downloader.params
|
||||||
format_param = params.get('format', None)
|
format_param = params.get('format', None)
|
||||||
|
if format_param is None:
|
||||||
|
format_param = '34'
|
||||||
|
|
||||||
# Extension
|
# Extension
|
||||||
video_extension = {
|
video_extension = {
|
||||||
|
@ -604,7 +606,7 @@ class YoutubeIE(InfoExtractor):
|
||||||
if mobj is None:
|
if mobj is None:
|
||||||
self.to_stderr(u'ERROR: unable to extract "t" parameter')
|
self.to_stderr(u'ERROR: unable to extract "t" parameter')
|
||||||
return [None]
|
return [None]
|
||||||
video_real_url = 'http://www.youtube.com/get_video?video_id=%s&t=%s' % (video_id, mobj.group(1))
|
video_real_url = 'http://www.youtube.com/get_video?video_id=%s&t=%s&el=detailpage&ps=' % (video_id, mobj.group(1))
|
||||||
if format_param is not None:
|
if format_param is not None:
|
||||||
video_real_url = '%s&fmt=%s' % (video_real_url, format_param)
|
video_real_url = '%s&fmt=%s' % (video_real_url, format_param)
|
||||||
self.report_video_url(video_id, video_real_url)
|
self.report_video_url(video_id, video_real_url)
|
||||||
|
|
Loading…
Reference in New Issue