-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Fix user-agent and referer for Innertube requests #7213
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
* development: (25 commits) Remove author and authorId from the required list of video keys for playlists (FreeTubeApp#7083) Translated using Weblate (Odia) Translated using Weblate (Nepali) Translated using Weblate (Hindi) Translated using Weblate (Sinhala) Translated using Weblate (Slovenian) Translated using Weblate (Catalan) Translated using Weblate (Assamese) Translated using Weblate (German) replace icns mac icon with hq one (FreeTubeApp#7212) Fix user-agent and referer for Innertube requests (FreeTubeApp#7213) Use new images (FreeTubeApp#7236) Fix the channel name and ID missing on the channel home tab (FreeTubeApp#7232) Translated using Weblate (Odia) Translated using Weblate (Georgian) Translated using Weblate (Bosnian) Translated using Weblate (Sinhala) Translated using Weblate (English (United Kingdom)) Translated using Weblate (Assamese) Fix live streams not working on the local API (FreeTubeApp#7233) ... # Conflicts: # src/renderer/views/Hashtag/Hashtag.vue
…rent * feature/hide-member-only-videos: (25 commits) Remove author and authorId from the required list of video keys for playlists (FreeTubeApp#7083) Translated using Weblate (Odia) Translated using Weblate (Nepali) Translated using Weblate (Hindi) Translated using Weblate (Sinhala) Translated using Weblate (Slovenian) Translated using Weblate (Catalan) Translated using Weblate (Assamese) Translated using Weblate (German) replace icns mac icon with hq one (FreeTubeApp#7212) Fix user-agent and referer for Innertube requests (FreeTubeApp#7213) Use new images (FreeTubeApp#7236) Fix the channel name and ID missing on the channel home tab (FreeTubeApp#7232) Translated using Weblate (Odia) Translated using Weblate (Georgian) Translated using Weblate (Bosnian) Translated using Weblate (Sinhala) Translated using Weblate (English (United Kingdom)) Translated using Weblate (Assamese) Fix live streams not working on the local API (FreeTubeApp#7233) ...
@absidue "If someone can confirm that this does solve the issue we can link it with a closes line." After downloading the |
Fix user-agent and referer for Innertube requests
Pull Request Type
Description
This pull request fixes the user-agent in the request payload not matching the user-agent header, as YouTube.js was chosing a random one for the request payload and also fixes the referer header for the session data request.
Thanks to @AudricV for discovering these inconsistencies.
Testing
Test a few videos and check that they play correctly. While I wasn't able to confirm if this fixes the IP block issue that users have been reporting, as I couldn't reproduce that issue myself, this should hopefully help the situation. If someone can confirm that this does solve the issue we can link it with a closes line.
Desktop