amnezia-vpn / amnezia-client

Amnezia VPN Client (Desktop+Mobile)
https://amnezia.org
GNU General Public License v3.0
5.8k stars 361 forks source link

Can't use yt-dlp with any protocols #907

Open r00936569 opened 3 months ago

r00936569 commented 3 months ago

Describe the bug Trying to setup yt-dlp to use amnezia server as proxy. yt-dlp is a CLI program to download primarly videos from many sites.

To Reproduce Steps to reproduce the behavior:

  1. Setup Amnezia VPN ShadowSocks protocol
  2. Run yt-dlp on any site, e.g. youtube: yt-dlp --proxy socks5://USER:PASSWORD@IP:PORT https://www.youtube.com/watch?v=dQw4w9WgXcQ

Expected behavior File is downloading

Log files

[youtube] Extracting URL: https://www.youtube.com/watch?v=dQw4w9WgXcQ
[youtube] dQw4w9WgXcQ: Downloading webpage
WARNING: [youtube] Unable to download webpage: (<yt_dlp.networking._requests.SocksHTTPSConnection object at 0x000001FBC2D9C070>, 'Connection to www.youtube.com timed out. (connect timeout=20.0)')
[youtube] dQw4w9WgXcQ: Downloading ios player API JSON
WARNING: [youtube] (<yt_dlp.networking._requests.SocksHTTPSConnection object at 0x000001FBC2F178E0>, 'Connection to www.youtube.com timed out. (connect timeout=20.0)'). Retrying (1/3)...
[youtube] dQw4w9WgXcQ: Downloading ios player API JSON
WARNING: [youtube] (<yt_dlp.networking._requests.SocksHTTPSConnection object at 0x000001FBC2F52A60>, 'Connection to www.youtube.com timed out. (connect timeout=20.0)'). Retrying (2/3)...
[youtube] dQw4w9WgXcQ: Downloading ios player API JSON

Screenshots スクリーンショット 2024-07-24 184729

Desktop (please complete the following information):

Server (please complete the following information):

Additional context Works fine with other non-amnezia proxies

Nethius commented 3 months ago

If you are using SOCKS5 from the services tab, try connecting without authentication