jeckman / YouTube-Downloader

PHP script for downloading videos from youtube; also parsing youtube feed into RSS enclosures for podcatchers
GNU General Public License v2.0
895 stars 474 forks source link

How set my own proxy on this? #320

Closed mrmmg closed 6 years ago

mrmmg commented 6 years ago

Description Hi, I want to set my own proxy on this downloader.how can I do this? Help me, please.

Steps to Reproduce No Steps.

Expected behavior: I want to set my own proxy (https) on this source code.

Actual behavior: I cannot find the file or source code that is Relevant to proxy setting or etc.

Version 0.6

Additional Information No more information.

jeckman commented 6 years ago

When you say "Set my own proxy (https) on this source code" do you mean you want the code to send it's outbound curl requests through a proxy (so that it goes through a proxy to youtube servers) or that you want to put a proxy in front of this code so that people accessing it go through a proxy first?

If it's the former, you can see where curl is configured at /src/Http/CurlClient.php

There isn't anything in the current config setup that let's you set that proxy without code, though I believe it can also be set globally on the server on which you run curl.

If the latter, that's outside the scope of this application