[ie/youtube] Add player_params
extractor arg
#7719
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This will be useful for debugging
Superceeds #7458
Template
Before submitting a pull request make sure you have:
In order to be accepted and merged into yt-dlp each piece of code must be in public domain or released under Unlicense. Check all of the following options that apply:
What is the purpose of your pull request?
Copilot Summary
🤖 Generated by Copilot at d3b338f
Summary
🎬🔧📺
Add
player_params
option for YouTube extractor to customize player requests. UpdateREADME.md
to document the new option and its usage.Walkthrough
player_params
to the youtube extractor that allows the user to specify custom YouTube player parameters for player requests (link, link, link, link)_PLAYER_PARAMS
attribute from theYoutubeIE
class and use the user-provided option instead (link)_extract_player_response
method of theYoutubeIE
class to use theplayer_params
option or fallback to the default value for android clients (link)player_params
option to the query string in the_download_player_responses
method of theYoutubeIE
class (link)README.md
to include the new option (link)