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
|
#!/usr/bin/env python3
|
||||||
|
|
||||||
__version__ = "1.5.9"
|
__version__ = "1.5.10"
|
||||||
|
|
|
@ -436,6 +436,7 @@ class Deezer:
|
||||||
if not 'more' in result:
|
if not 'more' in result:
|
||||||
result['more'] = []
|
result['more'] = []
|
||||||
result['more'].append(obj)
|
result['more'].append(obj)
|
||||||
|
result['all'].append(obj)
|
||||||
return result
|
return result
|
||||||
|
|
||||||
def search_main_gw(self, term):
|
def search_main_gw(self, term):
|
||||||
|
|
|
@ -184,9 +184,10 @@ class QueueManager:
|
||||||
|
|
||||||
if interface: interface.send("startAddingArtist", {'name': artistAPI['name'], 'id': artistAPI['id']})
|
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 = []
|
albumList = []
|
||||||
for album in artistAPITracks['data']:
|
for album in allReleases:
|
||||||
albumList.append(self.generateAlbumQueueItem(dz, album['id'], settings, bitrate))
|
albumList.append(self.generateAlbumQueueItem(dz, album['id'], settings, bitrate))
|
||||||
|
|
||||||
if interface: interface.send("finishAddingArtist", {'name': artistAPI['name'], 'id': artistAPI['id']})
|
if interface: interface.send("finishAddingArtist", {'name': artistAPI['name'], 'id': artistAPI['id']})
|
||||||
|
|
2
setup.py
2
setup.py
|
@ -7,7 +7,7 @@ README = (HERE / "README.md").read_text()
|
||||||
|
|
||||||
setup(
|
setup(
|
||||||
name="deemix",
|
name="deemix",
|
||||||
version="1.5.9",
|
version="1.5.10",
|
||||||
description="A barebone deezer downloader library",
|
description="A barebone deezer downloader library",
|
||||||
long_description=README,
|
long_description=README,
|
||||||
long_description_content_type="text/markdown",
|
long_description_content_type="text/markdown",
|
||||||
|
|
Loading…
Reference in New Issue