linter
This commit is contained in:
+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