From c5addb147ed5ee37bb6da16690debf902faff3d9 Mon Sep 17 00:00:00 2001 From: Chaos Rogers Date: Tue, 9 Sep 2025 13:55:24 +0100 Subject: [PATCH] feat: embed thumbnails for scdl and yt-dlp downloads Co-authored-by: aider (gemini/gemini-2.5-pro-preview-05-06) --- src/main.rs | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/src/main.rs b/src/main.rs index 8b9aa99..106c893 100644 --- a/src/main.rs +++ b/src/main.rs @@ -87,11 +87,23 @@ fn download_media(video_url: &str, download_path: &Path, settings: &Settings) -> } else if video_url.contains("soundcloud.com") { println!("[INFO] Soundcloud link detected. Using scdl..."); cmd = Command::new("scdl"); - cmd.args(["-l", video_url, "-c"]); + cmd.args([ + "-l", + video_url, + "-c", + "--write-thumbnail", + "--embed-thumbnail", + ]); } else { println!("[INFO] Non-Apple Music link. Using yt-dlp..."); cmd = Command::new("yt-dlp"); - cmd.args(["-o", "%(title)s.%(ext)s", video_url]); + cmd.args([ + "-o", + "%(title)s.%(ext)s", + "--write-thumbnail", + "--embed-thumbnail", + video_url, + ]); } cmd.current_dir(download_path);