Added "More Albums" to "All". Made artist download "All" category.

All category doesn't include Featured in, you still need to use 
"/discography" for that
This commit is contained in:
RemixDev
2020-10-07 21:27:41 +02:00
parent a3b96d3340
commit 90ff48ab87
4 changed files with 6 additions and 4 deletions

View File

@ -184,9 +184,10 @@ class QueueManager:
if interface: interface.send("startAddingArtist", {'name': artistAPI['name'], 'id': artistAPI['id']})
artistAPITracks = dz.get_artist_albums(id)
artistDiscographyAPI = dz.get_artist_discography_gw(id, 100)
allReleases = artistDiscographyAPI.pop('all', None)
albumList = []
for album in artistAPITracks['data']:
for album in allReleases:
albumList.append(self.generateAlbumQueueItem(dz, album['id'], settings, bitrate))
if interface: interface.send("finishAddingArtist", {'name': artistAPI['name'], 'id': artistAPI['id']})