Open-source download manager & offline media toolbox for YouTube, music, social media, learning platforms & 1,800+ sites. Built with Tauri 2.0, Rust & Svelte.
Rust downloadmanagerguihacktoberfesthomebrewlightweightlinuxlinux-distributionlocal-firstmacosmacos-packagemedia-toolboxopen-sourcerustsveltetauritrendingtrending-repositorieswindowswindows-desktopytdlp
feat(settings): add functionality to choose and display cookie file
Tonho9b0ac1b7de78
diff --git a/src/routes/settings/+page.svelte b/src/routes/settings/+page.svelteindex f9b55add..b5f5515c 100644--- a/src/routes/settings/+page.svelte+++ b/src/routes/settings/+page.svelte@@ -30,6 +30,17 @@} catch {}}+ async function chooseCookieFile() {+ const selected = await open({+ title: "Select cookies.txt file",+ filters: [{ name: "Cookies", extensions: ["txt"] }],+ multiple: false,+ });+ if (selected && typeof selected === "string") {+ await updateSettings({ download: { cookie_file: selected } });+ }+ }+async function handleInstallDep(name: string) {installingDep = name;try {@@ -491,6 +502,19 @@</button></div><div class="divider"></div>+ <div class="setting-row">+ <div class="setting-col">+ <span class="setting-label">{$t('common.cookie_file_label')}</span>+ <span class="setting-path">{$t('common.cookie_file_hint')}</span>+ </div>+ <div class="setting-actions">+ {#if settings.download.cookie_file}+ <span class="setting-value">{settings.download.cookie_file.split(/[/\\]/).pop()}</span>+ {/if}+ <button class="button" onclick={chooseCookieFile}>{$t('common.cookie_file_choose')}</button>+ </div>+ </div>+ <div class="divider"></div><div class="setting-row"><div class="setting-col"><span class="setting-label">{$t('settings.download.hotkey_enabled')} <ContextHint text={$t('hints.hotkey')} dismissKey="hotkey" /></span>