th-ch / youtube-music

YouTube Music Desktop App bundled with custom plugins (and built-in ad blocker / downloader)
https://th-ch.github.io/youtube-music/
MIT License
8.24k stars 485 forks source link

[Bug]: the proxy does not work in any way #2344

Closed vleky closed 1 month ago

vleky commented 1 month ago

Preflight Checklist

YouTube Music (Application) Version

3.5.1

Checklists

What operating system are you using?

Windows

Operating System Version

Windows 10 19044.4291

What CPU architecture are you using?

x64

Last Known Working YouTube Music (Application) version

No response

Reproduction steps

  1. I entered the proxy through the program settings, in the form of socks5://ip:port:login:password
  2. after restarting, there is no Internet connection, although the proxy is obviously working

Expected Behavior

the program will start working stably, but with a proxy, not physical and not my real ip

Actual Behavior

the program does not load in any way, even without a username and password, even if i change socks5 to html

Enabled plugins

nope, i didnt enable anything

Additional Information

No response

ArjixWasTaken commented 1 month ago

the program does not load in any way, even without a username and password, even if i change socks5 to html

did you mean http?

vleky commented 1 month ago

the program does not load in any way, even without a username and password, even if i change socks5 to html

did you mean http?

yes, I'm sorry, wrote it by mistake

ArjixWasTaken commented 1 month ago

We rely on electron's proxy-server command line option.

But electron does not do anything different from chromium, so their documentation looks wrong. Chromium's command line options for proxies shows --proxy-server="http=foopy:80;ftp=foopy2" as an example.

That'd mean you have to input http=foopy:80 as the proxy (to only proxy http requests), or just foopy:80 (to proxy all requests). Have you been inputting the value in any of the above formats? If not please try it like that

vleky commented 1 month ago

I'm trying to enter a proxy like this: at the top of the program "settings" - "advanced settings" - "set proxy", but the pop-up window requires input in the format "http://ip:port " or "socks5://ip:port"

ArjixWasTaken commented 1 month ago

I see that neither works. Even when I manually edit the config to force a different format, it doesn't work.

I'll investigate it for a bit

vleky commented 1 month ago

Well, I'm certainly waiting for your answer!

ArjixWasTaken commented 1 month ago

ok so, manually edit the config

image

and set your proxy like this image

with the http= in front

Save the file, and restart youtube music. Does it work then?


That is an anonymous free proxy I found online, so I won't censor it.

ArjixWasTaken commented 1 month ago

I hid my comment since it didn't actually solve the issue. the http= applied the proxy only on http:// and not https:// requests.

changing it to https= has the same issue

vleky commented 1 month ago

the proxy function is working, but if I choose even the closest and most accessible proxy (10-20 ms), the program loads for a very long time. there is a playback bar at the bottom, a search at the top, it is there, but no albums, no tracks, no profile, nothing is loaded

vleky commented 1 month ago

i will try to reinstall YTM app, maybe it give some results

vleky commented 1 month ago

no, nothing changed

JellyBrick commented 1 month ago

Duplicate of #743

vleky commented 1 month ago

even if it is a duplicate, no one has provided a solution to the problem

vleky commented 1 month ago

Duplicate of #743

I disagree, solve this problem, and does not say that it is a duplicate. this is a duplicate of a problem that was sent to websites to solve, where there is still no solution.

JellyBrick commented 1 month ago

even if it is a duplicate, no one has provided a solution to the problem

"Duplicate" does not mean the problem is solved.

JellyBrick commented 1 month ago

Also, Chromium does not support authenticated proxies, which is why that issue remains open.

JellyBrick commented 1 month ago

IMG_0829 😅