aandrew-me / ytDownloader

A modern GUI App for downloading Videos and Audios from hundreds of sites
https://ytdn.netlify.app/
GNU General Public License v3.0
924 stars 85 forks source link

set proxy #187

Closed mfaridi1394 closed 6 months ago

mfaridi1394 commented 7 months ago

Description Hi, How I cant set proxy for this application for download ?

aandrew-me commented 7 months ago

Hello https://github.com/aandrew-me/ytDownloader/issues/150 Create a text file, put the proxy test in it, like --proxy http://localhost:8080, then select the file from Preferences -

image
mfaridi1394 commented 7 months ago

--proxy http://localhost:8080

Thanks If I want use socks5 , what I must put in config file?

aandrew-me commented 7 months ago

Example —proxy socks5://user:pass@127.0.0.1:1080/

mfaridi1394 commented 7 months ago

Example —proxy socks5://user:pass@127.0.0.1:1080/

config file does not work m because I get connection time out error

aandrew-me commented 7 months ago

You're likely doing something wrong, for example I used a public socks5 proxy from here, so my config file looked like this

--proxy socks5://142.54.228.193:4145

And it worked without any problem

mfaridi1394 commented 7 months ago

You're likely doing something wrong, for example I used a public socks5 proxy from here, so my config file looked like this

--proxy socks5://142.54.228.193:4145

And it worked without any problem

I got this error ` URL: https://www.youtube.com/watch?v=nb5oYkF3bI8

    ERROR: [youtube] nb5oYkF3bI8: Unable to download API page: (, 'Connection to www.youtube.com timed out. (connect timeout=20.0)') (caused by TransportError("(, 'Connection to www.youtube.com timed out. (connect timeout=20.0)')"))

    `
aandrew-me commented 7 months ago

Well that means likely something is wrong with your proxy. If you are using a public proxy, I may try it, otherwise I cant help

mfaridi1394 commented 7 months ago

Well that means likely something is wrong with your proxy. If you are using a public proxy, I may try it, otherwise I cant help

I set this proxy on another application and work like charm

aandrew-me commented 7 months ago

Did you try accessing YouTube with your proxy?

mfaridi1394 commented 7 months ago

Did you try accessing YouTube with your proxy?

I have another program for download from youtube and I set this proxy on it and work

aandrew-me commented 7 months ago

How does your config file look like? (Remove sensitive details)

mfaridi1394 commented 7 months ago

How does your config file look like? (Remove sensitive details)

Hostname/IP:127.0.0.1 Port: 8080 ProxyType: Socks5 Proxy

aandrew-me commented 7 months ago

So your config file should look like this, if it is how you mentioned

--proxy socks5://127.0.0.1:8080
mfaridi1394 commented 7 months ago

So your config file should look like this, if it is how you mentioned

--proxy socks5://127.0.0.1:8080

I set this but I get timeout error

aandrew-me commented 7 months ago

Hm ok I am taking a look at the issue

aandrew-me commented 7 months ago

Hm I think I know your problem, you have to wait till the next update :( Thanks for creating the issue

aandrew-me commented 7 months ago

It should work after next update. Then use this in config file

--no-check-certificate --proxy socks5://127.0.0.1:8080
mfaridi1394 commented 7 months ago

--no-check-certificate --proxy socks5://127.0.0.1:8080

OK, thanks I will wait for your next update

aandrew-me commented 7 months ago

Update will be available today, soon

aandrew-me commented 7 months ago

And I will likely add a proper proxy option in settings too later

mfaridi1394 commented 7 months ago

And I will likely add a proper proxy option in settings too later

Thanks

aandrew-me commented 7 months ago

Did you get to try?

mfaridi1394 commented 6 months ago

Did you get to try?

Thanks after update and install new version problem solved and I can download from youtube.

Thanks again

aandrew-me commented 6 months ago

Awesome!