Skip to content
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

Fix video throttling because of range header #3234

Merged
merged 2 commits into from
Mar 1, 2023

Conversation

absidue
Copy link
Member

@absidue absidue commented Feb 28, 2023

Fix video throttling because of range header

Pull Request Type

  • Bugfix

Related issue

yt-dlp/yt-dlp#6369

Description

YouTube now throttles the DASH formats if you use the HTTP Range header, the Range header is the standardised way of telling a server you only want part of a file. For a while YouTube has been using a range query parameter instead of the standard header, however now they seem to mandate it for the DASH formats, if you don't want your streams to be throttled.

Testing

It looks like they haven't rolled the throttling out for everyone on every video yet.
So you can try multiple videos and also make sure that no new errors show up because of this change.

Desktop

  • OS: Windows
  • OS Version: 10
  • FreeTube version: 0.18.0

@FreeTubeBot FreeTubeBot enabled auto-merge (squash) February 28, 2023 18:51
@github-actions github-actions bot added the PR: waiting for review For PRs that are complete, tested, and ready for review label Feb 28, 2023
@ChunkyProgrammer
Copy link
Member

Is the string always "bytes="? Asking because https://github.com/unixfox/invidious-custom/blob/master/patches/007-range-header.patch is slightly different

@absidue
Copy link
Member Author

absidue commented Feb 28, 2023

in my testing it was, but i'll switch to the split way, as that seems more robust

Copy link
Collaborator

@PikachuEXE PikachuEXE left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

DASH format video loading seems faster now

@FreeTubeBot FreeTubeBot merged commit f56f6e7 into FreeTubeApp:development Mar 1, 2023
@github-actions github-actions bot removed the PR: waiting for review For PRs that are complete, tested, and ready for review label Mar 1, 2023
PikachuEXE added a commit to PikachuEXE/FreeTube that referenced this pull request Mar 1, 2023
* development:
  Fix video throttling because of range header (FreeTubeApp#3234)
  Translated using Weblate (Greek)
  Migrate channel related functionality to YouTube.js (FreeTubeApp#3143)
  Differentiate links in readme.md (FreeTubeApp#3224)
@absidue absidue deleted the fix-range-throttling branch March 1, 2023 05:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants