improved artist bulk downloading
This commit is contained in:
@@ -1029,6 +1029,11 @@ def download_playlist(self, **task_data):
|
||||
custom_track_format = task_data.get("custom_track_format", config_params.get("customTrackFormat", "%tracknum%. %music%"))
|
||||
pad_tracks = task_data.get("pad_tracks", config_params.get("tracknum_padding", True))
|
||||
|
||||
# Get retry parameters
|
||||
initial_retry_delay = task_data.get("initial_retry_delay", config_params.get("retryDelaySeconds", 5))
|
||||
retry_delay_increase = task_data.get("retry_delay_increase", config_params.get("retry_delay_increase", 5))
|
||||
max_retries = task_data.get("max_retries", config_params.get("maxRetries", 3))
|
||||
|
||||
# Execute the download
|
||||
download_playlist_func(
|
||||
service=service,
|
||||
|
||||
@@ -19,7 +19,8 @@ def download_playlist(
|
||||
initial_retry_delay=5,
|
||||
retry_delay_increase=5,
|
||||
max_retries=3,
|
||||
progress_callback=None
|
||||
progress_callback=None,
|
||||
spotify_quality=None
|
||||
):
|
||||
try:
|
||||
# DEBUG: Print parameters
|
||||
@@ -96,7 +97,7 @@ def download_playlist(
|
||||
initial_retry_delay=initial_retry_delay,
|
||||
retry_delay_increase=retry_delay_increase,
|
||||
max_retries=max_retries,
|
||||
spotify_quality=fall_quality
|
||||
spotify_quality=spotify_quality or fall_quality
|
||||
)
|
||||
print(f"DEBUG: Playlist download completed successfully using Deezer credentials")
|
||||
except Exception as e:
|
||||
@@ -126,7 +127,7 @@ def download_playlist(
|
||||
spo.download_playlist(
|
||||
link_playlist=url,
|
||||
output_dir="./downloads",
|
||||
quality_download=fall_quality,
|
||||
quality_download=spotify_quality or fall_quality,
|
||||
recursive_quality=True,
|
||||
recursive_download=False,
|
||||
not_interface=False,
|
||||
@@ -167,7 +168,7 @@ def download_playlist(
|
||||
spo.download_playlist(
|
||||
link_playlist=url,
|
||||
output_dir="./downloads",
|
||||
quality_download=quality,
|
||||
quality_download=spotify_quality or quality,
|
||||
recursive_quality=True,
|
||||
recursive_download=False,
|
||||
not_interface=False,
|
||||
|
||||
Reference in New Issue
Block a user