From 41eb19b2e7358017918a78eb8fa59bfbf2e05918 Mon Sep 17 00:00:00 2001
From: HsiangNianian <i@jyunko.cn>
Date: Wed, 14 Jan 2026 13:35:25 +0800
Subject: feat: add download settings for concurrent download threads

---
 ui/src/components/SettingsView.svelte | 23 +++++++++++++++++++++++
 1 file changed, 23 insertions(+)

(limited to 'ui/src/components/SettingsView.svelte')

diff --git a/ui/src/components/SettingsView.svelte b/ui/src/components/SettingsView.svelte
index 9f260c1..fc4fe46 100644
--- a/ui/src/components/SettingsView.svelte
+++ b/ui/src/components/SettingsView.svelte
@@ -117,6 +117,29 @@
       </div>
     </div>
 
+    <!-- Download Settings -->
+    <div class="bg-zinc-800/50 p-6 rounded-lg border border-zinc-700">
+      <h3
+        class="block text-sm font-bold text-zinc-400 mb-4 uppercase tracking-wide"
+        >Download Settings</h3>
+      <div>
+        <label for="download-threads" class="block text-xs text-zinc-500 mb-1"
+          >Concurrent Download Threads</label
+        >
+        <input
+          id="download-threads"
+          bind:value={settingsState.settings.download_threads}
+          type="number"
+          min="1"
+          max="128"
+          class="bg-zinc-950 text-white w-full p-3 rounded border border-zinc-700 focus:border-indigo-500 outline-none"
+        />
+        <p class="text-xs text-zinc-500 mt-2">
+          Number of files to download simultaneously. Higher values can speed up downloads but may consume more bandwidth. Recommended: 16-64
+        </p>
+      </div>
+    </div>
+
     <div class="pt-4">
       <button
         onclick={() => settingsState.saveSettings()}
-- 
cgit v1.2.3-70-g09d2

