feat: Add real_time_multiplier. This param speeds up the download time by X when real_time_dl is set to True
This commit is contained in:
@@ -35,7 +35,8 @@ from deezspot.libutils.others_settings import (
|
||||
stock_zip,
|
||||
stock_save_cover,
|
||||
stock_real_time_dl,
|
||||
stock_market
|
||||
stock_market,
|
||||
stock_real_time_multiplier
|
||||
)
|
||||
from deezspot.libutils.logging_utils import logger, ProgressReporter, report_progress
|
||||
|
||||
@@ -88,6 +89,7 @@ class SpoLogin:
|
||||
recursive_download=stock_recursive_download,
|
||||
not_interface=stock_not_interface,
|
||||
real_time_dl=stock_real_time_dl,
|
||||
real_time_multiplier: int = stock_real_time_multiplier,
|
||||
custom_dir_format=None,
|
||||
custom_track_format=None,
|
||||
pad_tracks=True,
|
||||
@@ -113,6 +115,7 @@ class SpoLogin:
|
||||
|
||||
preferences = Preferences()
|
||||
preferences.real_time_dl = real_time_dl
|
||||
preferences.real_time_multiplier = int(real_time_multiplier) if real_time_multiplier is not None else 1
|
||||
preferences.link = link_track
|
||||
preferences.song_metadata = song_metadata
|
||||
preferences.quality_download = quality_download
|
||||
@@ -172,6 +175,7 @@ class SpoLogin:
|
||||
not_interface=stock_not_interface,
|
||||
make_zip=stock_zip,
|
||||
real_time_dl=stock_real_time_dl,
|
||||
real_time_multiplier: int = stock_real_time_multiplier,
|
||||
custom_dir_format=None,
|
||||
custom_track_format=None,
|
||||
pad_tracks=True,
|
||||
@@ -199,6 +203,7 @@ class SpoLogin:
|
||||
|
||||
preferences = Preferences()
|
||||
preferences.real_time_dl = real_time_dl
|
||||
preferences.real_time_multiplier = int(real_time_multiplier) if real_time_multiplier is not None else 1
|
||||
preferences.link = link_album
|
||||
preferences.song_metadata = song_metadata
|
||||
preferences.quality_download = quality_download
|
||||
@@ -246,6 +251,7 @@ class SpoLogin:
|
||||
not_interface=stock_not_interface,
|
||||
make_zip=stock_zip,
|
||||
real_time_dl=stock_real_time_dl,
|
||||
real_time_multiplier: int = stock_real_time_multiplier,
|
||||
custom_dir_format=None,
|
||||
custom_track_format=None,
|
||||
pad_tracks=True,
|
||||
@@ -306,6 +312,7 @@ class SpoLogin:
|
||||
|
||||
preferences = Preferences()
|
||||
preferences.real_time_dl = real_time_dl
|
||||
preferences.real_time_multiplier = int(real_time_multiplier) if real_time_multiplier is not None else 1
|
||||
preferences.link = link_playlist
|
||||
preferences.song_metadata = song_metadata_list
|
||||
preferences.quality_download = quality_download
|
||||
@@ -353,6 +360,7 @@ class SpoLogin:
|
||||
recursive_download=stock_recursive_download,
|
||||
not_interface=stock_not_interface,
|
||||
real_time_dl=stock_real_time_dl,
|
||||
real_time_multiplier: int = stock_real_time_multiplier,
|
||||
custom_dir_format=None,
|
||||
custom_track_format=None,
|
||||
pad_tracks=True,
|
||||
@@ -380,6 +388,7 @@ class SpoLogin:
|
||||
|
||||
preferences = Preferences()
|
||||
preferences.real_time_dl = real_time_dl
|
||||
preferences.real_time_multiplier = int(real_time_multiplier) if real_time_multiplier is not None else 1
|
||||
preferences.link = link_episode
|
||||
preferences.song_metadata = episode_metadata
|
||||
preferences.output_dir = output_dir
|
||||
@@ -427,6 +436,7 @@ class SpoLogin:
|
||||
not_interface=stock_not_interface,
|
||||
make_zip=stock_zip,
|
||||
real_time_dl=stock_real_time_dl,
|
||||
real_time_multiplier: int = stock_real_time_multiplier,
|
||||
custom_dir_format=None,
|
||||
custom_track_format=None,
|
||||
pad_tracks=True,
|
||||
@@ -468,6 +478,7 @@ class SpoLogin:
|
||||
not_interface=not_interface,
|
||||
make_zip=make_zip,
|
||||
real_time_dl=real_time_dl,
|
||||
real_time_multiplier=real_time_multiplier,
|
||||
custom_dir_format=custom_dir_format,
|
||||
custom_track_format=custom_track_format,
|
||||
pad_tracks=pad_tracks,
|
||||
@@ -496,6 +507,7 @@ class SpoLogin:
|
||||
not_interface=stock_not_interface,
|
||||
make_zip=stock_zip,
|
||||
real_time_dl=stock_real_time_dl,
|
||||
real_time_multiplier: int = stock_real_time_multiplier,
|
||||
custom_dir_format=None,
|
||||
custom_track_format=None,
|
||||
pad_tracks=True,
|
||||
@@ -530,6 +542,7 @@ class SpoLogin:
|
||||
recursive_download=recursive_download,
|
||||
not_interface=not_interface,
|
||||
real_time_dl=real_time_dl,
|
||||
real_time_multiplier=real_time_multiplier,
|
||||
custom_dir_format=custom_dir_format,
|
||||
custom_track_format=custom_track_format,
|
||||
pad_tracks=pad_tracks,
|
||||
@@ -557,6 +570,7 @@ class SpoLogin:
|
||||
not_interface=not_interface,
|
||||
make_zip=make_zip,
|
||||
real_time_dl=real_time_dl,
|
||||
real_time_multiplier=real_time_multiplier,
|
||||
custom_dir_format=custom_dir_format,
|
||||
custom_track_format=custom_track_format,
|
||||
pad_tracks=pad_tracks,
|
||||
@@ -584,6 +598,7 @@ class SpoLogin:
|
||||
not_interface=not_interface,
|
||||
make_zip=make_zip,
|
||||
real_time_dl=real_time_dl,
|
||||
real_time_multiplier=real_time_multiplier,
|
||||
custom_dir_format=custom_dir_format,
|
||||
custom_track_format=custom_track_format,
|
||||
pad_tracks=pad_tracks,
|
||||
@@ -610,6 +625,7 @@ class SpoLogin:
|
||||
recursive_download=recursive_download,
|
||||
not_interface=not_interface,
|
||||
real_time_dl=real_time_dl,
|
||||
real_time_multiplier=real_time_multiplier,
|
||||
custom_dir_format=custom_dir_format,
|
||||
custom_track_format=custom_track_format,
|
||||
pad_tracks=pad_tracks,
|
||||
|
||||
Reference in New Issue
Block a user