mhogomchungu / media-downloader

Media Downloader is a Qt/C++ front end to yt-dlp, youtube-dl, gallery-dl, lux, you-get, svtplay-dl, aria2c, wget and safari books..
GNU General Public License v2.0
1.34k stars 102 forks source link

Proxy support #318

Closed trimechee closed 9 months ago

trimechee commented 9 months ago

Hello, I am almost no longer able to download YouTube videos using Media-Downloader and even using other downloaders and donwnloadr websites, i can't download youtube videos and youtube audio except when I use a VPN, I don't really know if this restriction is done by YouTube or my ISP or a yt-dlp bug.... in rare cases, when I use Media-Downloader without VPN, I can download 4 YouTube audio files with a speed limited to 50kb/s then the rest of the downloads are blocked....

and so I found a reliable and fast proxy and I would like to use it only with our beloved Media-Downloader without using it in the network settings of the os or web browser and it will be great please add proxy support for Media-downloader, because the proxy is faster than a free VPN and free VPN displays ads and can be slow and overloaded....

Thanks a lot !

mhogomchungu commented 9 months ago
--proxy URL                     Use the specified HTTP/HTTPS/SOCKS proxy. To
                                enable SOCKS proxy, specify a proper scheme,
                                e.g. socks5://user:pass@127.0.0.1:1080/.
                                Pass in an empty string (--proxy "") for
                                direct connection

yt-dlp has a "--proxy" option and you can set it by:-

  1. Adding it in the "Download Options" text field.
  2. Adding an entry in the "Engine's Default Options" tab with the entry having the "--proxy" option and then set the entry as default.
trimechee commented 9 months ago

Great ! Thank you ! so, when i add "--proxy", i should specify also the adresss and the port of the proxy ? for exemale --proxy 1.6.5.4:8080 ? can i add also proxy option as preset ? in engine's default options, i should put "--newline --ignore-config --no-playlist -o %(title).200s-%(id)s.%(ext)s --proxy 2.4.7.9:80 " ?

trimechee commented 9 months ago

I think i will enable proxy in the settings of the whole network of the os, so can Media-downlaoder can automatically detect and use the proxy network settings of the OS when i add proxy to global network of the OS i mean when i add proxy to network setting of internet explorer ?

mhogomchungu commented 9 months ago

so, when i add "--proxy", i should specify also the adresss and the port of the proxy ? for exemale --proxy 1.6.5.4:8080 ?

Yes.

can i add also proxy option as preset ?

Yes

in engine's default options, i should put "--newline --ignore-config --no-playlist -o %(title).200s-%(id)s.%(ext)s --proxy 2.4.7.9:80 " ?

Yes

Options are endless :-)

mhogomchungu commented 9 months ago

I think i will enable proxy in the settings of the whole network of the os, so can Media-downlaoder can automatically detect and use the proxy network settings of the OS when i add proxy to global network of the OS i mean when i add proxy to network setting of internet explorer ?

MD will not detect the proxy setting from the OS and pass it along to yt-dlp, try it and see if yt-dlp will automatically detect and use the setting from the OS.

trimechee commented 9 months ago

Awesome ! Thank you so much for yout precious help :) 💯 🥇 I tried with proxy from the os, the download speed is 50ko/s, si i guess the proxy is limitig the speed of the download or MD does not detect the proxy.....beacause the speed is not very powerful like whe i use vpn..... but at least when the system proxy is activated, it seems there is video downloads because often, the files do not want to download....I will try to do further tests with the new preset --proxy.....Thank you again :) 👍

mhogomchungu commented 9 months ago

Next version of Media Downloader will pick up proxy settings from the OS on windows.

Screenshot_20230924_233801

trimechee commented 9 months ago

Great ! Awesome ! Thank you so much Mr @mhogomchungu ! 💯 🥇 and I just discovered an interesting thing, I thought that when youtube download in Media-Downloader freezes and there is no indication about the download progress and speed, I thought there is no download but I notice that even if the youtube download is frozen, I see the file in the download folder, I'm going to do other tests but that's good news, it seems we no longer need a vpn or proxy to download from youtube....

trimechee commented 9 months ago

Oups i made some tests, only one video youtube id downloaded and then, the download freez and i have message erro time out....it seems it become impossible to donwload videos from youtube without proxy or vpn, i don't know if this is worldwide problem ou my ip adress is blackkisted....

mhogomchungu commented 9 months ago

New version is out and a window to configure proxy settings looks like below.

https://github.com/mhogomchungu/media-downloader/releases/tag/3.4.0

Screenshot_20231001_113823

trimechee commented 9 months ago

Awesome ! thank you so much for this wonderful important feature :) 🥇 💯 Media-Downloader stills the best of the best and number one of the downloaders !