tmp
This commit is contained in:
parent
b2e582c566
commit
d8929d3064
5 changed files with 139 additions and 3 deletions
3
main.py
3
main.py
|
|
@ -1,5 +1,5 @@
|
|||
from DataBase import *
|
||||
from SpotifyWebAPI import fetch_data
|
||||
from SpotifyWebAPI import fetch_data, update_access_token
|
||||
import cmd
|
||||
|
||||
playlists = get_data('playlistTracks')
|
||||
|
|
@ -167,6 +167,7 @@ class Interpreter(cmd.Cmd):
|
|||
def do_fetch(self, arg):
|
||||
"""Fetch all spotify data"""
|
||||
try:
|
||||
update_access_token()
|
||||
fetch_data()
|
||||
|
||||
global playlists, top_artists, top_tracks, user_tracks
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue