mirror of https://github.com/blackjack4494/yt-dlc
[youtube] Add `html5=1` param to `get_video_info` page requests (#329)
Workaround for #319, https://github.com/ytdl-org/youtube-dl/issues/29086 Authored by: colethedj
This commit is contained in:
parent
9d5d4d64f8
commit
00ae27690d
|
@ -1903,7 +1903,8 @@ class YoutubeIE(YoutubeBaseInfoExtractor):
|
||||||
'el': 'detailpage',
|
'el': 'detailpage',
|
||||||
'c': 'WEB_REMIX',
|
'c': 'WEB_REMIX',
|
||||||
'cver': '0.1',
|
'cver': '0.1',
|
||||||
'cplayer': 'UNIPLAYER'
|
'cplayer': 'UNIPLAYER',
|
||||||
|
'html5': '1',
|
||||||
}, fatal=False)),
|
}, fatal=False)),
|
||||||
lambda x: x['player_response'][0],
|
lambda x: x['player_response'][0],
|
||||||
compat_str) or '{}', video_id)
|
compat_str) or '{}', video_id)
|
||||||
|
@ -1929,6 +1930,7 @@ class YoutubeIE(YoutubeBaseInfoExtractor):
|
||||||
'unable to download video info webpage', query={
|
'unable to download video info webpage', query={
|
||||||
'video_id': video_id,
|
'video_id': video_id,
|
||||||
'eurl': 'https://youtube.googleapis.com/v/' + video_id,
|
'eurl': 'https://youtube.googleapis.com/v/' + video_id,
|
||||||
|
'html5': '1',
|
||||||
}, fatal=False)),
|
}, fatal=False)),
|
||||||
lambda x: x['player_response'][0],
|
lambda x: x['player_response'][0],
|
||||||
compat_str) or '{}', video_id)
|
compat_str) or '{}', video_id)
|
||||||
|
|
Loading…
Reference in New Issue