Skip to content

build: add decompress extras marker #6451

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

Merged
merged 1 commit into from
Mar 1, 2025

Conversation

bastimeyer
Copy link
Member

Instead of defining brotli and zstandard directly, rely on urllib3's version requirements and use its brotli and zstd extras markers.

brotli or zstandard may be required by some websites which ignore the HTTP client's decompression capabilities set in the Accept-Encoding HTTP header. Both dependencies are picked up automatically if available.


https://github.com/urllib3/urllib3/blob/2.3.0/pyproject.toml#L41-L48

Instead of defining brotli and zstandard directly, rely on urllib3's
version requirements and use its brotli and zstd extras markers.

brotli or zstandard may be required by some websites which ignore
the HTTP client's decompression capabilities set in the Accept-Encoding
HTTP header. Both dependencies are picked up automatically if available.
@bastimeyer
Copy link
Member Author

Before I'm going to merge this, keep the "decompress" name, or rename to something else?

Copy link
Member

@gravyboat gravyboat left a comment

Choose a reason for hiding this comment

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

Before I'm going to merge this, keep the "decompress" name, or rename to something else?

I'm fine with decompress. I can't think of a better word that easily explains what is happening based on your notes here and in #6452. If it becomes a problem we can always rename, no reason to over complicate it now though.

@bastimeyer bastimeyer merged commit 38aecab into streamlink:master Mar 1, 2025
23 checks passed
@bastimeyer bastimeyer deleted the build/decompress-extras branch March 1, 2025 10:45
pbsds pushed a commit to NixOS/nixpkgs that referenced this pull request Jul 11, 2025
This extra was added in Streamlink 7.2.0 and may be required by some
websites. See streamlink/streamlink#6451
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants