This commit is contained in:
cool.gitter.choco
2025-03-15 14:44:43 -06:00
parent c6204ada00
commit a4932ae36e
31 changed files with 2183 additions and 807 deletions

View File

@@ -14,15 +14,13 @@ def search(
if main:
search_creds_path = Path(f'./creds/spotify/{main}/search.json')
print(search_creds_path)
if search_creds_path.exists():
try:
with open(search_creds_path, 'r') as f:
search_creds = json.load(f)
client_id = search_creds.get('client_id')
print(client_id)
client_secret = search_creds.get('client_secret')
print(client_secret)
except Exception as e:
print(f"Error loading search credentials: {e}")