feat: Reimplement download artist discography per groups in artist page
This commit is contained in:
@@ -8,6 +8,7 @@ from routes.utils.credentials import (
|
||||
)
|
||||
from routes.utils.celery_queue_manager import get_existing_task_id
|
||||
from routes.utils.errors import DuplicateDownloadError
|
||||
from routes.utils.celery_config import get_config_params
|
||||
|
||||
|
||||
def download_album(
|
||||
@@ -98,6 +99,7 @@ def download_album(
|
||||
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_albumspo(
|
||||
link_album=url, # Spotify URL
|
||||
@@ -257,6 +259,11 @@ def download_album(
|
||||
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_albumdee( # Deezer URL, download via Deezer
|
||||
link_album=url,
|
||||
|
||||
Reference in New Issue
Block a user