This commit is contained in:
2026-02-28 19:30:13 +01:00
parent 30789aa2a9
commit cb272b9cd9
13 changed files with 54 additions and 38 deletions
+2 -8
View File
@@ -1,12 +1,9 @@
use core::ops::Deref;
use std::path::PathBuf;
use which::which;
use futures::StreamExt;
use postcard::from_bytes;
use types::jobs::Job;
use which::which;
use yt_dlp::{Downloader, client::Libraries};
#[tokio::main]
@@ -19,10 +16,7 @@ async fn main() {
.await
.unwrap();
let libraries = Libraries::new(
PathBuf::from(which("yt-dlp").unwrap()),
PathBuf::from(which("ffmpeg").unwrap()),
);
let libraries = Libraries::new(which("yt-dlp").unwrap(), which("ffmpeg").unwrap());
let downloader = Downloader::builder(libraries, "output")
.build()
.await