spacys / mediathek

Kodi addon for Amazon Prime Music
GNU General Public License v3.0
22 stars 7 forks source link

Still no HD audio? #100

Open leGeddy opened 1 year ago

leGeddy commented 1 year ago

What would it take to make this possible? I have an Amazon Music Unlimited account but not being able to fully enjoy it on my Chromecast with Google TV is a bummer... yes, the Amazon Music app does play HD but the Android TV version is horrible and I would much prefer using your add-on.

I could look into it but I don't really know where to look and what to look for... to that end (and because it's impossible to do any kind of debugging on Android TV), I installed the add-on on my Kodi Linux but ran into that IA issue you are well aware of... regardless, it could be enough to investigate the issue even if I cannot play any songs.

Unless this project is dead and that would be a shame...

spacys commented 1 year ago

The root cause is still unknown, the same code runs fine under Windows, but not under Linux (it was working before under Linux as well). I think Amazon has changed the accessibility for Linux. Regarding HD playback...the identified Amazon API's does not allow it. In the meanwhile Amazon has changed the complete client-server-communication structure and is using 'skills' now. Till now, I was not able to analyze/understand this new structure fully. But I'm happy for any suppport ;-)

leGeddy commented 1 year ago

Thanks for replying.

I'm retired and bored so happy to investigate ;) and yes, I (finally) realised that this API only gives access to SD tracks. I assume you are referring to this API so I guess it would mean a complete rewrite... even then, it seems that inputstream.adaptive does not support the FLAC codec used by AM for HD so I am not sure what to do. Perhaps use inputstream.ffmpegdirect like the TIDAL2 addon does?

Still investigating the other issue...

spacys commented 1 year ago

Great finding! I was not aware of it. I'm using different API's, you can find those in my code, but it is worth to check your API documentation link. Thanks for sharing it! Flac codec depends on Kodi (and/or the OS), normally Kodi is able to play all kind of codecs, and in case there is something missing, we can install it easily. All my local songs are in flac format, but I never tried it with streaming from the internet.

leGeddy commented 1 year ago

Actually, I was looking for documentation on the API you are using but only found this one and then realised you (and others) reverse engineered the web API. It remains to be seen if the code can be updated to use the device API without any of the hooplas mentionned in the Amazon Music Program requirements section... As for the Flac codec, I am not sure why IA needs to "support" it as indeed Kodi can play anything. Perhaps the folks there could explain...