carterwward commited on
Commit
fa6f8cb
·
1 Parent(s): ef0f27e

make login manual again

Browse files
Files changed (1) hide show
  1. src/spotipy_utils.py +3 -1
src/spotipy_utils.py CHANGED
@@ -74,7 +74,9 @@ def get_auth_manager() -> spotipy.oauth2.SpotifyOAuth:
74
  spotipy.oauth2.SpotifyOAuth: Spotipy authentication manager.
75
  """
76
  cache_handler = spotipy.cache_handler.MemoryCacheHandler()
77
- return spotipy.oauth2.SpotifyOAuth(client_id=CLIENT_ID, client_secret=CLIENT_SECRET, scope=PLAYLIST_SCOPE, redirect_uri=REDIRECT_URL, cache_handler=cache_handler)
 
 
78
 
79
 
80
  def search_for_track(track, artist):
 
74
  spotipy.oauth2.SpotifyOAuth: Spotipy authentication manager.
75
  """
76
  cache_handler = spotipy.cache_handler.MemoryCacheHandler()
77
+ return spotipy.oauth2.SpotifyOAuth(client_id=CLIENT_ID, client_secret=CLIENT_SECRET, scope=PLAYLIST_SCOPE, redirect_uri=REDIRECT_URL,
78
+ show_dialog=True,
79
+ open_browser=True, cache_handler=cache_handler)
80
 
81
 
82
  def search_for_track(track, artist):