Started working on album tab

This commit is contained in:
RemixDev 2020-04-18 11:17:39 +02:00
parent 148696f497
commit 1d031d9e51

View file

@ -134,12 +134,12 @@ def getTracklist(data):
tracksData[release['record_type']] = []
tracksData[release['record_type']].append(release)
tracksData['all'].append(release)
artistAPI['data'] = tracksData
artistAPI['releases'] = tracksData
emit('show_artist', artistAPI)
else:
releaseAPI = getattr(session['dz'], 'get_'+data['type'])(data['id'])
releaseTracksAPI = getattr(session['dz'], 'get_'+data['type'])(data['id'])
releaseAPI['data'] = releaseTracksAPI
releaseTracksAPI = getattr(session['dz'], 'get_'+data['type']+'_tracks')(data['id'])['data']
releaseAPI['tracks'] = releaseTracksAPI
emit('show_'+data['type'], releaseAPI)
def run_server(port):