mirror of
https://github.com/unshackle-dl/unshackle.git
synced 2025-10-23 15:11:08 +00:00
feat: Add download retry count option to download function
This commit is contained in:
@@ -150,6 +150,7 @@ def download(
|
|||||||
|
|
||||||
track_type = track.__class__.__name__
|
track_type = track.__class__.__name__
|
||||||
thread_count = str(config.n_m3u8dl_re.get("thread_count", max_workers))
|
thread_count = str(config.n_m3u8dl_re.get("thread_count", max_workers))
|
||||||
|
retry_count = str(config.n_m3u8dl_re.get("retry_count", max_workers))
|
||||||
ad_keyword = config.n_m3u8dl_re.get("ad_keyword")
|
ad_keyword = config.n_m3u8dl_re.get("ad_keyword")
|
||||||
|
|
||||||
arguments = [
|
arguments = [
|
||||||
@@ -160,6 +161,8 @@ def download(
|
|||||||
output_dir,
|
output_dir,
|
||||||
"--thread-count",
|
"--thread-count",
|
||||||
thread_count,
|
thread_count,
|
||||||
|
"--download-retry-count",
|
||||||
|
retry_count,
|
||||||
"--no-log",
|
"--no-log",
|
||||||
"--write-meta-json",
|
"--write-meta-json",
|
||||||
"false",
|
"false",
|
||||||
|
|||||||
Reference in New Issue
Block a user