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
+3 -3
View File
@@ -4,11 +4,11 @@ version = "0.1.0"
edition = "2024"
[dependencies]
types = { path = "../types" }
async-nats = { version = "0.46.0" }
futures = { version = "0.3.32" }
futures-executor = { version = "0.3.32" }
tokio = { version = "1.49.0", features = ["macros", "rt-multi-thread"] }
postcard = { version = "1.1.3", features = ["use-std"] }
yt-dlp = { version = "2.1.0" }
tokio = { version = "1.49.0", features = ["macros", "rt-multi-thread"] }
types = { path = "../types" }
which = { version = "8.0.0" }
yt-dlp = { version = "2.1.0" }
+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