Files
spotizerr-dev/routes/utils/search.py
cool.gitter.choco bf0f50c440 Added frontend
2025-01-26 13:06:27 -06:00

14 lines
353 B
Python

from deezspot.easy_spoty import Spo
def search(
query: str,
search_type: str,
limit: int = 3
) -> dict:
# Initialize the Spotify client
Spo.__init__()
# Perform the Spotify search and return the raw response
spotify_response = Spo.search(query=query, search_type=search_type, limit=limit)
return spotify_response