atmop
This commit is contained in:
parent
bb5453b59e
commit
366860a1ad
1 changed files with 8 additions and 0 deletions
8
main.py
8
main.py
|
|
@ -93,6 +93,14 @@ class Interpreter(cmd.Cmd):
|
|||
"""Fetch all spotify data"""
|
||||
try:
|
||||
fetch_data()
|
||||
|
||||
global playlists, top_artists, top_tracks, user_tracks
|
||||
|
||||
playlists = get_data('playlistTracks')
|
||||
top_artists = get_data('top_artists')
|
||||
top_tracks = get_data('top_tracks')
|
||||
user_tracks = get_data('tracks')
|
||||
|
||||
except ValueError:
|
||||
print("Can not fetch the data.")
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue