moved todo
This commit is contained in:
parent
314bf9db8d
commit
9d1b844667
@ -10,6 +10,8 @@ from spotipy import SpotifyOAuth
|
|||||||
from jarvis.utils import config_utils
|
from jarvis.utils import config_utils
|
||||||
|
|
||||||
scope = "user-read-playback-state, user-modify-playback-state, user-read-currently-playing"
|
scope = "user-read-playback-state, user-modify-playback-state, user-read-currently-playing"
|
||||||
|
|
||||||
|
# TODO: Investigate the open_browser and automatic auth renewing without user interaction
|
||||||
sp = spotipy.Spotify(auth_manager=SpotifyOAuth(scope=scope,
|
sp = spotipy.Spotify(auth_manager=SpotifyOAuth(scope=scope,
|
||||||
client_id=config_utils.get_in_config("SPOTIFY_CLIENT_ID"),
|
client_id=config_utils.get_in_config("SPOTIFY_CLIENT_ID"),
|
||||||
client_secret=config_utils.get_in_config("SPOTIFY_CLIENT_SECRET"),
|
client_secret=config_utils.get_in_config("SPOTIFY_CLIENT_SECRET"),
|
||||||
@ -17,9 +19,6 @@ sp = spotipy.Spotify(auth_manager=SpotifyOAuth(scope=scope,
|
|||||||
open_browser=False))
|
open_browser=False))
|
||||||
|
|
||||||
|
|
||||||
# TODO: Investigate the open_browser and automatic auth renewing without user interaction
|
|
||||||
|
|
||||||
|
|
||||||
def get_spotify():
|
def get_spotify():
|
||||||
return sp
|
return sp
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user