Skip to content

Commit

Permalink
[youtube] Add html5=1 param to get_video_info page requests (yt-d…
Browse files Browse the repository at this point in the history
…lp#329)

Workaround for yt-dlp#319, ytdl-org/youtube-dl#29086
Authored by: colethedj
  • Loading branch information
coletdjnz authored and pukkandan committed May 20, 2021
1 parent 642b0d2 commit bdb7fef
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion extractor/youtube.py
Original file line number Diff line number Diff line change
Expand Up @@ -1903,7 +1903,8 @@ def get_text(x):
'el': 'detailpage',
'c': 'WEB_REMIX',
'cver': '0.1',
'cplayer': 'UNIPLAYER'
'cplayer': 'UNIPLAYER',
'html5': '1',
}, fatal=False)),
lambda x: x['player_response'][0],
compat_str) or '{}', video_id)
Expand All @@ -1929,6 +1930,7 @@ def get_text(x):
'unable to download video info webpage', query={
'video_id': video_id,
'eurl': 'https://youtube.googleapis.com/v/' + video_id,
'html5': '1',
}, fatal=False)),
lambda x: x['player_response'][0],
compat_str) or '{}', video_id)
Expand Down

0 comments on commit bdb7fef

Please sign in to comment.