updated cache root

This commit is contained in:
Alexander Karpov 2024-02-01 03:15:22 +03:00
parent c81b387689
commit a309d5653d

View File

@ -26,7 +26,7 @@ def search(name: str, session: spotipy.Spotify, search_type="track"):
def download_url(url, user_id=None): def download_url(url, user_id=None):
spot_settings = { spot_settings = {
"simple_tui": True, "simple_tui": True,
"log_level": "DEBUG", "log_level": "ERROR",
"lyrics_providers": ["genius", "musixmatch"], "lyrics_providers": ["genius", "musixmatch"],
} }
@ -34,7 +34,6 @@ def download_url(url, user_id=None):
client_id=settings.MUSIC_SPOTIFY_ID, client_id=settings.MUSIC_SPOTIFY_ID,
client_secret=settings.MUSIC_SPOTIFY_SECRET, client_secret=settings.MUSIC_SPOTIFY_SECRET,
user_auth=False, user_auth=False,
cache_path=settings.MEDIA_ROOT,
headless=False, headless=False,
downloader_settings=spot_settings, downloader_settings=spot_settings,
) )