tiliado / nuvolaplayer

Nuvola Player - Tight integration of web-based media streaming services with your desktop
https://nuvola.tiliado.eu/
BSD 2-Clause "Simplified" License
335 stars 28 forks source link

Amazon Cloud Player 'Your Browser Not Supported' Error Upon Startup #744

Closed Kandelai closed 2 years ago

Kandelai commented 3 years ago

Unfortunately, Amazon Music is currently incompatible with Nuvola Player and there is no feasible workaround. Per our terms, the service has been marked as deprecated and affected Nuvola Player users may ask for a refund of their Nuvola Player license. We plan to bring Amazon Music back once #583 is resolved by the end of 2021.

Reason for the incompatibility: Amazon Music website shows "Your browser not supported". The only way to fix the issue is upgrading the web engine, which will happen with #583 by the end of 2021.


Issue: Attaching photo of the browser not supported error I recently started receiving upon startup of Nuvolaplayer using the Amazon Cloud Player. Updated Flatpak, issue remains.

Nuvolaplayer version: 4.22.0 (0-gcff8d27)

Amazon Cloud Player version: 5.12.0 (0-gc08a57d)

System Information:

Operating System: EndeavourOS KDE Plasma Version: 5.21.5 KDE Frameworks Version: 5.82.0 Qt Version: 5.15.2 Kernel Version: 5.12.9-zen1-1-zen OS Type: 64-bit Graphics Platform: X11 Processors: 6 × Intel® Core™ i5-9600K CPU @ 3.70GHz Memory: 15.6 GiB of RAM Graphics Processor: NVIDIA GeForce GTX 1660 SUPER/PCIe/SSE2 Screenshot_20210604_235006

jiri-janousek commented 3 years ago

Hello @Kandelai, thanks for reporting your issue. Unfortunately, it seems Nuvola is no longer compatible with Amazon Music. I've updated the issue description with the reason and our plan to bring Amazon Music back. I'm sorry that we cannot provide any short-term fix to let you use Amazon Music with Nuvola Player. Per our terms, the service has been marked as deprecated and affected Nuvola Player users may ask for a refund of their Nuvola Player license.

Kandelai commented 3 years ago

Thank you for your quick response. Although unfortunate to hear, I understand the greater issues at hand. I will check back towards the end of 2021 to see where the project landed.

a-m-s commented 3 years ago

Can we not just change the user agent?

domdfcoding commented 3 years ago

I think there's more to their detection than just the user agent. If I follow the instructions in the docs here and use the user agent from Chrome it still doesn't work.

jiri-janousek commented 3 years ago

Can we not just change the user agent?

This is the first thing I tried. They seem to use proper browser features detection rather than dumb user agent parsing.

jedatwork commented 3 years ago

I'm not sure if this helps here, but I was able to bypass the agent check building an app with nativefier and passing firefox as the agent and including the --widevine flag.

theli-ua commented 3 years ago

fwiw even before it became blocked I started having multiple playback issues in amazon music with nuvola

jiri-janousek commented 3 years ago

I'm not sure if this helps here, but I was able to bypass the agent check building an app with nativefier and passing firefox as the agent and including the --widevine flag.

Unfortunately, Firefox user agent doesn't work for Nuvola.

gandalf239 commented 3 years ago

I was just able to successfully build an Electron-wrapped Amazon Music HD player on Pop OS 20.10 (Linux), using the following:

nativefier https://music.amazon.com/?ref_=dm_lnd_k ... rec_signin -p linux -a x64 --inject ./worker.js --user-agent "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.131 Safari/537.36" --widevine

Note: the worker.js file contains:

if ('serviceWorker' in navigator) {

caches.keys().then(function (cacheNames) {

cacheNames.forEach(function (cacheName) {

caches.delete(cacheName);

});

});

}

The --widevine flag downloads a Widevine-enabled version of Electron, which supplies the requisite DRM to enable playback.

Your mileage will of course vary. One must of course have nativefier, and its prerequisites (imagemagick, nodejs, etc), installed.

DeepinScreenshot_select-area_20210820104839!

jiri-janousek commented 2 years ago

I'm closing this ticket as Nuvola Player has discontinued active development. We are going to provide only integration bug fixes on a best-effort basis until the final End-of-Life on December 31, 2022. I'm sorry that I haven't managed to resolve this ticket in time.