Skip to content

Conversation

@bastimeyer
Copy link
Member

@bastimeyer bastimeyer commented May 5, 2022

Fixes #4513

Old consent dialog (I agree):

$ streamlink -l debug youtube.com/hospitalrecords/live
[cli][debug] OS:         Linux-5.17.5-1-git-x86_64-with-glibc2.35
[cli][debug] Python:     3.10.4
[cli][debug] Streamlink: 4.0.1+7.g7426d573
[cli][debug] Requests(2.27.1), Socks(1.7.1), Websocket(1.3.2)
[cli][debug] Arguments:
[cli][debug]  url=youtube.com/hospitalrecords/live
[cli][debug]  --loglevel=debug
[cli][debug]  --player=mpv
[cli][info] Found matching plugin youtube for URL youtube.com/hospitalrecords/live
[plugins.youtube][debug] consent target: https://consent.youtube.com/s
[plugins.youtube][debug] consent data: gl, m, pc, continue, ca, x, v, t, hl, src, uxe
[plugins.youtube][debug] Using video ID: jdkegu3Zexg
[plugins.youtube][debug] This video is live.
[plugins.youtube][debug] This video may be protected.
[utils.l10n][debug] Language code: en_US
Available streams: 144p (worst), 240p, 360p, 480p, 720p, 1080p (best)

New consent dialog (Accept all):

$ streamlink -l debug youtube.com/hospitalrecords/live
[cli][debug] OS:         Linux-5.17.5-1-git-x86_64-with-glibc2.35
[cli][debug] Python:     3.10.4
[cli][debug] Streamlink: 4.0.1+7.g7426d573
[cli][debug] Requests(2.27.1), Socks(1.7.1), Websocket(1.3.2)
[cli][debug] Arguments:
[cli][debug]  url=youtube.com/hospitalrecords/live
[cli][debug]  --loglevel=debug
[cli][debug]  --player=mpv
[cli][info] Found matching plugin youtube for URL youtube.com/hospitalrecords/live
[plugins.youtube][debug] consent target: https://consent.youtube.com/save
[plugins.youtube][debug] consent data: gl, m, pc, continue, x, v, bl, hl, src, uxe, set_ytc, set_apyt, set_eom
[plugins.youtube][debug] Using video ID: jdkegu3Zexg
[plugins.youtube][debug] This video is live.
[plugins.youtube][debug] This video may be protected.
[utils.l10n][debug] Language code: en_US
Available streams: 144p (worst), 240p, 360p, 480p, 720p, 1080p (best)

@bastimeyer bastimeyer added the plugin issue A Plugin does not work correctly label May 5, 2022
@back-to back-to merged commit ef36240 into streamlink:master May 5, 2022
@bastimeyer bastimeyer deleted the plugins/youtube/fix-consent-dialog branch May 5, 2022 18:10
Billy2011 added a commit to Billy2011/streamlink-27 that referenced this pull request May 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

plugin issue A Plugin does not work correctly

Projects

None yet

Development

Successfully merging this pull request may close these issues.

plugins.youtube: 400 Client Error: Bad request for url: https://consent.youtube.com/s

2 participants