mirror of
https://gitlab.com/RemixDev/deemix-py.git
synced 2024-12-28 02:26:14 +00:00
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:
parent
a3b96d3340
commit
90ff48ab87
|
@ -1,3 +1,3 @@
|
|||
#!/usr/bin/env python3
|
||||
|
||||
__version__ = "1.5.9"
|
||||
__version__ = "1.5.10"
|
||||
|
|
|
@ -436,6 +436,7 @@ class Deezer:
|
|||
if not 'more' in result:
|
||||
result['more'] = []
|
||||
result['more'].append(obj)
|
||||
result['all'].append(obj)
|
||||
return result
|
||||
|
||||
def search_main_gw(self, term):
|
||||
|
|
|
@ -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']})
|
||||
|
|
Loading…
Reference in a new issue