feat: Reimplement download artist discography per groups in artist page
This commit is contained in:
@@ -3,6 +3,8 @@ from deezspot.spotloader import SpoLogin
|
||||
from deezspot.deezloader import DeeLogin
|
||||
from pathlib import Path
|
||||
from routes.utils.credentials import get_credential, _get_global_spotify_api_creds
|
||||
from routes.utils.credentials import get_spotify_blob_path
|
||||
from routes.utils.celery_config import get_config_params
|
||||
from routes.utils.celery_queue_manager import get_existing_task_id
|
||||
from routes.utils.errors import DuplicateDownloadError
|
||||
|
||||
@@ -95,6 +97,7 @@ def download_playlist(
|
||||
spotify_client_id=global_spotify_client_id,
|
||||
spotify_client_secret=global_spotify_client_secret,
|
||||
progress_callback=progress_callback,
|
||||
spotify_credentials_path=str(get_spotify_blob_path(main)),
|
||||
)
|
||||
dl.download_playlistspo(
|
||||
link_playlist=url, # Spotify URL
|
||||
@@ -265,6 +268,11 @@ def download_playlist(
|
||||
spotify_client_id=global_spotify_client_id, # Global Spotify keys
|
||||
spotify_client_secret=global_spotify_client_secret, # Global Spotify keys
|
||||
progress_callback=progress_callback,
|
||||
spotify_credentials_path=(
|
||||
str(get_spotify_blob_path(get_config_params().get("spotify")))
|
||||
if get_config_params().get("spotify")
|
||||
else None
|
||||
),
|
||||
)
|
||||
dl.download_playlistdee( # Deezer URL, download via Deezer
|
||||
link_playlist=url,
|
||||
|
||||
Reference in New Issue
Block a user