Added additional info in artist tab

Now using get_artist_discography from newest version of deemix
This commit is contained in:
RemixDev 2020-08-04 15:14:10 +02:00
parent 74bef8ea27
commit 0e3b33d824
3 changed files with 3 additions and 10 deletions

View file

@ -1,4 +1,4 @@
deemix>=1.1.26
deemix>=1.1.28
flask
flask-socketio
pywebview>=3.3.1

View file

@ -200,14 +200,7 @@ def saveSettings(settings, spotifyCredentials, spotifyUser):
def getTracklist(data):
if data['type'] == 'artist':
artistAPI = session['dz'].get_artist(data['id'])
artistAlbumsAPI = session['dz'].get_artist_albums(data['id'])['data']
tracksData = {'all': []}
for release in artistAlbumsAPI:
if not release['record_type'] in tracksData:
tracksData[release['record_type']] = []
tracksData[release['record_type']].append(release)
tracksData['all'].append(release)
artistAPI['releases'] = tracksData
artistAPI['releases'] = session['dz'].get_artist_discography_gw(data['id'], 100)
emit('show_artist', artistAPI)
elif data['type'] == 'spotifyplaylist':
playlistAPI = app.getSpotifyPlaylistTracklist(data['id'])

2
webui

@ -1 +1 @@
Subproject commit 1c6141ca5a3337301826b1bfa55b79f812e35f7e
Subproject commit c1a18293374364c61c426f650ed6cdafd025556e