`Accept-Language` header support
Description:
I'm French and my entire system is sent in French. But in MellowPlayer, Spotify is in English.
Adding a Accept-Language
header to every HTTP request would likely solve this.
Steps To Reproduce:
-
Set your system in your favorite non-English language
-
Open MellowPlayer: it's in your language!
-
Open Spotify in MellowPlayer: it's in English!
-
Using Chrome DevTools connected to MellowPlayer shows that there's no
Accept-Language
in the request headers. -
Now let's do the same with curl. Run this:
$ curl -s https://open.spotify.com/browse | head -3 <!DOCTYPE html><html dir="ltr" lang="en" ...
-
Let's now fix this with curl:
$ curl -s https://open.spotify.com/browse -H 'Accept-Language: fr' | head -3 <!DOCTYPE html><html dir="ltr" lang="fr" ...
I'm sorry but I don't know enough about Qt or QtWebEngine to add that header myself and submit a PR. Could you please have a look at this?
Thanks a lot!
Additional Information:
- Version: 3.5.5
- Affected streaming services (if any): Spotify, possibly others?
- Operating System: Arch Linux, no DE (using Awesome WM), native package installed from AUR
Edited by Colin Duquesnoy