mirror of
https://gitlab.com/RemixDev/deemix-gui-pyweb.git
synced 2024-12-28 02:16:16 +00:00
Added additional info in artist tab
Now using get_artist_discography from newest version of deemix
This commit is contained in:
parent
74bef8ea27
commit
0e3b33d824
|
@ -1,4 +1,4 @@
|
|||
deemix>=1.1.26
|
||||
deemix>=1.1.28
|
||||
flask
|
||||
flask-socketio
|
||||
pywebview>=3.3.1
|
||||
|
|
|
@ -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
2
webui
|
@ -1 +1 @@
|
|||
Subproject commit 1c6141ca5a3337301826b1bfa55b79f812e35f7e
|
||||
Subproject commit c1a18293374364c61c426f650ed6cdafd025556e
|
Loading…
Reference in a new issue