linter
This commit is contained in:
+3
-3
@@ -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
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user