Jaffa / amazon-music

Provide programmatic access to Amazon Music/Prime Music's streaming service
Apache License 2.0
342 stars 69 forks source link

listAlbums doesnt list all of my albums #3

Open danieldaeschle opened 6 years ago

Jaffa commented 6 years ago

Can you add the following to your client: it will turn on HTTP logging, so we can see the data going back and forth?

import requests
import logging
import http.client as http_client
http_client.HTTPConnection.debuglevel = 1
logging.basicConfig()
logging.getLogger().setLevel(logging.DEBUG)
requests_log = logging.getLogger("requests.packages.urllib3")
requests_log.setLevel(logging.DEBUG)
requests_log.propagate = True

If you could then say which albums are & aren't included, that would be great.

danieldaeschle commented 6 years ago

I already found the bug. I will send you the solution next week.

danieldaeschle commented 6 years ago

The error is that listAlbums only show albums where contains more than 4 songs. I have a lot of albums where contains only 1 Song. Additionally the check if 'PRIME' don't works in my case. i have Music Unlimited and then i only get listed 6 songs xD

If you remove this two checks it lists me all albums.

norcross commented 6 years ago

would like to +1 this, as Amazon just announced they’re discontinuing Unlimited and there is no way to download your personal library other than 1 at a time.

danieldaeschle commented 6 years ago

Where does Amazon said they're discontinuing Unlimited???

norcross commented 6 years ago

here: https://www.amazon.com/gp/help/customer/display.html?nodeId=201379330

danieldaeschle commented 6 years ago

They did't said, that they stop unlimited. They only stop the functionality to upload your own mp3 files.

norcross commented 6 years ago

a close friend who has the 250,000 plan has Amazon telling him it’s no longer supported and he has to download them if he wants to keep them.