Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
Before submitting an issue make sure you have:
What is the purpose of your issue?
Description of your issue, suggested solution and other information
Hello and thanks to the dev team😄
My OS is Windows Vista SP2 32-bit, latest yt-dl windows executable (as stated).
I want to use yt-dl to dump a certain private HLS master playlist, let's call it
https://host1/blahblah/master.m3u8?token.The master playlist URI is geo-fenced from my physical location,
so are its individual variants and segment URIs; to connect to
host1I have thusto use a special (commercial) HTTPS proxy, so with yt-dl I would type:
youtube-dl --proxy="https://proxyhost:proxyport" --hls-prefer-native "https://host1/blahblah/master.m3u8?token"As is not uncommon nowadays, the HLS segments are AES-128 encrypted;
the key delivery URI is of the format:
https://host2/HLS/GetKey.aspx?parametersMy specific issue:
host2is NOT GEO-FENCED from my physical location, howeverproxyhostis configured by its maintainers in a special manner so as to refuse connections tohost2; IOW, the proxy is only being usedfor segment downloading, while segment decryption key acquisition is done DIRECT...
In Firefox, I can write a local PAC file (to proxy only
host1| exclude from proxyinghost2)or use the browser's GUI settings to implement the proxy and exclude from it
host2; that way,the HLS stream can be viewed in the browser... But in yt-dl, with only using the
--proxyoption,I end up in failure; the download is aborted after the 1st segment has been downloaded but not decrypted:
Solution:
Sadly, I am not a coder; it took me quite a while to identify the root cause of my issue,
then spent another 2 hours of searching on-line +
trial & errorfor a solution; it turnsout I can set in the Windows command line the following environment variable:
SET NO_PROXY=host2(followed by ENTER) and then, in the same CLI window, issue my yt-dl cmd:youtube-dl --proxy="https://proxyhost:proxyport" --hls-prefer-native "https://host1/blahblah/master.m3u8?token"To hopefully save the hassle from other yt-dl users, could we please have a new
--no-proxy-for-host(or similar) documented option in yt-dl? Value could be a comma separated list of hosts not to be proxied via the
--proxysupplied proxy...I understand this should be a low-priority feature request, however thanks in advance for possibly considering it...😄
Best regards