added album id export

This commit is contained in:
aj 2019-03-04 21:41:13 +00:00
parent 45de569308
commit afc73bb8e1

View File

@ -2,7 +2,7 @@ import csv
import spotframework.net.playlist as playlistpull import spotframework.net.playlist as playlistpull
import datetime import datetime
headers = ['name', 'artist', 'album', 'album artist', 'added', 'spotify id', 'added by'] headers = ['name', 'artist', 'album', 'album artist', 'added', 'track id', 'album id', 'added by']
def exportPlaylist(user, playlistid, name, path): def exportPlaylist(user, playlistid, name, path):
@ -19,7 +19,8 @@ def exportPlaylist(user, playlistid, name, path):
'name':track['track']['name'], 'name':track['track']['name'],
'album':track['track']['album']['name'], 'album':track['track']['album']['name'],
'added':track['added_at'], 'added':track['added_at'],
'spotify id':track['track']['id'], 'track id':track['track']['id'],
'album id':track['track']['album']['id'],
'added by':track['added_by']['id']} 'added by':track['added_by']['id']}
alart = [] alart = []