Skip to content

plugins.twitch: remove headless=False override #6117

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conversation

bastimeyer
Copy link
Member

@bastimeyer bastimeyer commented Aug 6, 2024

Follow-up of #6116


Successful streaming access tokens

$ streamlink --twitch-force-client-integrity --twitch-purge-client-integrity twitch.tv/gorgc
[cli][info] Found matching plugin twitch for URL twitch.tv/gorgc
[plugins.twitch][info] Removing cached client-integrity token...
[plugins.twitch][info] Acquiring new client-integrity token...
[webbrowser.webbrowser][info] Launching web browser: /usr/bin/chromium (headless=False)
Available streams: audio_only, 160p (worst), 360p, 480p, 720p, 720p60, 1080p60 (best)

$ streamlink --twitch-force-client-integrity --twitch-purge-client-integrity --webbrowser-headless=true twitch.tv/gorgc
[cli][info] Found matching plugin twitch for URL twitch.tv/gorgc
[plugins.twitch][info] Removing cached client-integrity token...
[plugins.twitch][info] Acquiring new client-integrity token...
[webbrowser.webbrowser][info] Launching web browser: /usr/bin/chromium (headless=True)
Available streams: audio_only, 160p (worst), 360p, 480p, 720p, 720p60, 1080p60 (best)

Successful GQL API responses

$ curl 'https://gql.twitch.tv/gql' \
  -s \
  -H 'accept: */*' \
  -H 'accept-language: en-US' \
  -H 'client-id: kimne78kx3ncx6brgo4mv6wki5h1ko' \
  -H 'content-type: text/plain;charset=UTF-8' \
  -H 'origin: https://www.twitch.tv' \
  -H 'referer: https://www.twitch.tv/' \
  -H 'user-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/127.0.0.0 Safari/537.36' \
  $(streamlink --twitch-force-client-integrity --twitch-purge-client-integrity twitch.tv/gorgc >/dev/null 2>&1 && jq -r '.["twitch:client-integrity"].value | "-H \"x-device-id: " + .[0] + "\" -H \"client-integrity: " + .[1] + "\""' "${XDG_CACHE_HOME:-~/.cache}/streamlink/plugin-cache.json") \
  --data-raw '[{"operationName":"BrowsePage_AllDirectories","variables":{"limit":30,"options":{"recommendationsContext":{"platform":"web"},"requestID":"JIRA-VXP-2397","sort":"RELEVANCE","tags":[]}},"extensions":{"persistedQuery":{"version":1,"sha256Hash":"2f67f71ba89f3c0ed26a141ec00da1defecb2303595f5cda4298169549783d9e"}}}]' \
  | jq 'first | .errors'
null

$ curl 'https://gql.twitch.tv/gql' \
  -s \
  -H 'accept: */*' \
  -H 'accept-language: en-US' \
  -H 'client-id: kimne78kx3ncx6brgo4mv6wki5h1ko' \
  -H 'content-type: text/plain;charset=UTF-8' \
  -H 'origin: https://www.twitch.tv' \
  -H 'referer: https://www.twitch.tv/' \
  -H 'user-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/127.0.0.0 Safari/537.36' \
  $(streamlink --twitch-force-client-integrity --twitch-purge-client-integrity --webbrowser-headless=true twitch.tv/gorgc >/dev/null 2>&1 && jq -r '.["twitch:client-integrity"].value | "-H \"x-device-id: " + .[0] + "\" -H \"client-integrity: " + .[1] + "\""' "${XDG_CACHE_HOME:-~/.cache}/streamlink/plugin-cache.json") \
  --data-raw '[{"operationName":"BrowsePage_AllDirectories","variables":{"limit":30,"options":{"recommendationsContext":{"platform":"web"},"requestID":"JIRA-VXP-2397","sort":"RELEVANCE","tags":[]}},"extensions":{"persistedQuery":{"version":1,"sha256Hash":"2f67f71ba89f3c0ed26a141ec00da1defecb2303595f5cda4298169549783d9e"}}}]' \
  | jq 'first | .errors'
null

@bastimeyer bastimeyer added the plugin enhancement A new feature for a working Plugin label Aug 6, 2024
@bastimeyer bastimeyer merged commit b7afcde into streamlink:master Aug 6, 2024
16 checks passed
@bastimeyer bastimeyer deleted the plugins/twitch/remove-headless-false-override branch August 6, 2024 13:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
plugin enhancement A new feature for a working Plugin
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant