Skip to content

tweak: Add YouTube web_safari client by default#4

Open
Baplar wants to merge 1 commit intoYellow-Dog-Man:masterfrom
Baplar:baplar/tweak/web-safari-yt-premium
Open

tweak: Add YouTube web_safari client by default#4
Baplar wants to merge 1 commit intoYellow-Dog-Man:masterfrom
Baplar:baplar/tweak/web-safari-yt-premium

Conversation

@Baplar
Copy link
Copy Markdown

@Baplar Baplar commented Oct 9, 2025

The web_safari client gives access to pre-merged audio+video formats with high resolutions. It is already used by default in most cases, except for users with cookies linked to a YouTube Premium account, which paradoxically causes users with Premium to be stuck with 360p videos in Resonite.

This change adds this option by default on all requests, which will have no impact for most users, but will allow users with YouTube Premium accounts to access high resolution videos like all other users, at the tiny overhead cost of a few additional requests to fetch the available formats for this additional client.

I compiled and tested this locally with my install of Resonite, and I can confirm that this works, both with and without the cookies option being enabled.

This should not cause any breakage in the future even if one day yt-dlp removes the web_safari client, because yt-dlp simply ignores unknown client arguments and carries on with the defaults:

λ ~/Dev/ yt-dlp -F --extractor-args "youtube:player_client=default,tatata" "https://www.youtube.com/watch?v=5_dZXZ0GRoA"
<... Some info messages ...>
WARNING: [youtube] Skipping unsupported client "tatata"
<... Displays the table of available formats ...>

The web_safari client gives access to pre-merged audio+video formats with high resolutions.
It is already used by default in most cases, [except for users with cookies linked to a YouTube Premium account](yt-dlp/yt-dlp#14575), which paradoxically causes users with Premium to be stuck with 360p videos in Resonite.

This change adds this option by default on all requests, which will have no impact for most users, but will allow users with YouTube Premium accounts to access high resolution videos like all other users, at the tiny overhead cost of a few additional requests to fetch the available formats for this additional client.
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.

1 participant