From 98ecf6f876211355cd78a3d50de058179b46e427 Mon Sep 17 00:00:00 2001 From: Andy Date: Tue, 23 Sep 2025 01:32:00 +0000 Subject: [PATCH] feat: Add download retry count option to download function --- unshackle/core/downloaders/n_m3u8dl_re.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/unshackle/core/downloaders/n_m3u8dl_re.py b/unshackle/core/downloaders/n_m3u8dl_re.py index 95100bc..d183111 100644 --- a/unshackle/core/downloaders/n_m3u8dl_re.py +++ b/unshackle/core/downloaders/n_m3u8dl_re.py @@ -150,6 +150,7 @@ def download( track_type = track.__class__.__name__ 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") arguments = [ @@ -160,6 +161,8 @@ def download( output_dir, "--thread-count", thread_count, + "--download-retry-count", + retry_count, "--no-log", "--write-meta-json", "false",