From e62cce11f2d0048ab4e075333cc1aaa2d026fd2a Mon Sep 17 00:00:00 2001 From: JMARyA Date: Thu, 7 Mar 2024 18:32:39 +0100 Subject: [PATCH] aria2 --- Dockerfile | 3 ++- src/youtube/mod.rs | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 6b92730..6d227dc 100644 --- a/Dockerfile +++ b/Dockerfile @@ -16,7 +16,8 @@ RUN pacman -Sy --noconfirm archlinux-keyring && \ pacman -S --noconfirm \ ca-certificates \ ffmpeg \ - yt-dlp + yt-dlp \ + aria2 COPY --from=builder /app/target/release/hoard /hoard diff --git a/src/youtube/mod.rs b/src/youtube/mod.rs index 53accaa..c2c4bad 100644 --- a/src/youtube/mod.rs +++ b/src/youtube/mod.rs @@ -125,6 +125,8 @@ impl YouTubeModule { ensure_dir_exists(cwd); let output = Command::new("yt-dlp") .current_dir(cwd) + .arg("--downloader") + .arg("aria2c") .arg("--write-thumbnail") .arg("-o") .arg(opt.output_format.as_deref().unwrap_or("%(title)s.%(ext)s"))