Skip to content

Open-source download manager & offline media toolbox for YouTube, music, social media, learning platforms & 1,800+ sites. Built with Tauri 2.0, Rust & Svelte.

feat: add default options for embedding metadata and thumbnails in download settings

Tonhoc27ebea44e82
diff --git a/src-tauri/src/models/settings.rs b/src-tauri/src/models/settings.rs
index 2ac16688..1a21795f 100644
--- a/src-tauri/src/models/settings.rs
+++ b/src-tauri/src/models/settings.rs
@@ -25,6 +25,10 @@ pub struct DownloadSettings {
pub skip_existing: bool,
pub download_attachments: bool,
pub download_descriptions: bool,
+ #[serde(default = "default_true")]
+ pub embed_metadata: bool,
+ #[serde(default = "default_true")]
+ pub embed_thumbnail: bool,
}
#[derive(Debug, Clone, Serialize, Deserialize)]
@@ -39,6 +43,10 @@ fn default_max_concurrent_downloads() -> u32 {
2
}
+fn default_true() -> bool {
+ true
+}
+
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct TelegramSettings {
pub concurrent_downloads: u32,
@@ -69,6 +77,8 @@ impl Default for AppSettings {
skip_existing: true,
download_attachments: true,
download_descriptions: true,
+ embed_metadata: true,
+ embed_thumbnail: true,
},
advanced: AdvancedSettings {
max_concurrent_segments: 20,