Added catch for empty artists and made release type safe

in case deezer adds a new release type
This commit is contained in:
RemixDev
2020-10-07 21:43:13 +02:00
parent 90ff48ab87
commit 49cf460131
4 changed files with 5 additions and 5 deletions

View File

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