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) { } }