diff --git a/src/dl/yt_dlp.rs b/src/dl/yt_dlp.rs index 8b13789..2e2e399 100644 --- a/src/dl/yt_dlp.rs +++ b/src/dl/yt_dlp.rs @@ -1 +1,32 @@ +use serde::Deserialize; +use serde_json; +use std::process::Command; +#[derive(Deserialize, Debug)] +pub struct YtDlpFormat { + pub format_id: String, + pub format_note: Option, + pub audio_channels: Option, + pub width: Option, + pub height: Option, + pub ext: String, + pub vcodec: Option, + pub acodec: Option, + pub abr: Option, + pub vbr: Option +} + +#[derive(Deserialize, Debug)] +pub struct YtDlpInfo { + pub id: String, + pub title: String, + pub formats: Vec +} + +pub struct YtDlp {} + +impl YtDlp { + pub fn load_info(url: &str) { + + } +} \ No newline at end of file