Expected behavior of the wanted feature
The curl backend needs a way to force ipv4/ipv6.
Sometimes, youtube blocks a host's ipv6 address but allows its ipv4 address, or vice versa. We can force yt-dlp to use ipv4 or ipv6 with --ytdl-raw-options and get the stream URLs, but it does not look like there's a way to force a specific stack for the retrieval.
I'm currenty getting 403 errors because while yt-dlp gets the URLs correctly (ipv4), mpv tries to play the content using ipv6.
Alternative behavior of the wanted feature
Some method of forcing ipv4 or ipv6. Maybe even a --curl-raw-options argument.
Log File
No response
Sample Files
No response
Expected behavior of the wanted feature
The curl backend needs a way to force ipv4/ipv6.
Sometimes, youtube blocks a host's ipv6 address but allows its ipv4 address, or vice versa. We can force
yt-dlpto use ipv4 or ipv6 with--ytdl-raw-optionsand get the stream URLs, but it does not look like there's a way to force a specific stack for the retrieval.I'm currenty getting 403 errors because while yt-dlp gets the URLs correctly (ipv4), mpv tries to play the content using ipv6.
Alternative behavior of the wanted feature
Some method of forcing ipv4 or ipv6. Maybe even a
--curl-raw-optionsargument.Log File
No response
Sample Files
No response