aria2
This commit is contained in:
parent
9b2075acc3
commit
e62cce11f2
2 changed files with 4 additions and 1 deletions
|
@ -16,7 +16,8 @@ RUN pacman -Sy --noconfirm archlinux-keyring && \
|
||||||
pacman -S --noconfirm \
|
pacman -S --noconfirm \
|
||||||
ca-certificates \
|
ca-certificates \
|
||||||
ffmpeg \
|
ffmpeg \
|
||||||
yt-dlp
|
yt-dlp \
|
||||||
|
aria2
|
||||||
|
|
||||||
COPY --from=builder /app/target/release/hoard /hoard
|
COPY --from=builder /app/target/release/hoard /hoard
|
||||||
|
|
||||||
|
|
|
@ -125,6 +125,8 @@ impl YouTubeModule {
|
||||||
ensure_dir_exists(cwd);
|
ensure_dir_exists(cwd);
|
||||||
let output = Command::new("yt-dlp")
|
let output = Command::new("yt-dlp")
|
||||||
.current_dir(cwd)
|
.current_dir(cwd)
|
||||||
|
.arg("--downloader")
|
||||||
|
.arg("aria2c")
|
||||||
.arg("--write-thumbnail")
|
.arg("--write-thumbnail")
|
||||||
.arg("-o")
|
.arg("-o")
|
||||||
.arg(opt.output_format.as_deref().unwrap_or("%(title)s.%(ext)s"))
|
.arg(opt.output_format.as_deref().unwrap_or("%(title)s.%(ext)s"))
|
||||||
|
|
Loading…
Reference in a new issue