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

@ -1,3 +1,3 @@
#!/usr/bin/env python3
__version__ = "1.5.9"
__version__ = "1.5.10"

View File

@ -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):

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']})

View File

@ -7,7 +7,7 @@ README = (HERE / "README.md").read_text()
setup(
name="deemix",
version="1.5.9",
version="1.5.10",
description="A barebone deezer downloader library",
long_description=README,
long_description_content_type="text/markdown",