youtube-music: [Manjaro] Unsupported Browser
Using the AUR package youtube-music-bin and cannot login due to the unsupported browser error.
So whatever fix mentioned in #17 didn’t stick.
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 16 (4 by maintainers)
On Arch, opening the developer tools, and running the below in the console allowed me to login no problem.
Object.defineProperty(navigator, 'userAgent', { get: function () { return 'Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:94.0) Gecko/20100101 Firefox/94.0'; } });Wait what
Okay so maybe my patch works. Sorta. I’ll publish it in a PR and someone much more of a guru can figure out what’s going on. Electron is not in my wheelhouse.
maybe the user agent needs to be updated @th-ch
https://github.com/th-ch/youtube-music/blob/a14d27da70caba3fcdfc104f04aeef15646fa1b5/index.js#L207-L211