This commit is contained in:
JMARyA 2024-03-07 18:32:39 +01:00
parent 9b2075acc3
commit e62cce11f2
Signed by: jmarya
GPG key ID: 901B2ADDF27C2263
2 changed files with 4 additions and 1 deletions

View file

@ -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

View file

@ -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"))