| Crates.io | ytdlp-rs |
| lib.rs | ytdlp-rs |
| version | 0.1.0 |
| created_at | 2025-07-05 14:31:49.922708+00 |
| updated_at | 2025-07-05 14:31:49.922708+00 |
| description | The thinnest yt-dlp wrapper. |
| homepage | |
| repository | https://github.com/siriusmart/ytdlp-rs |
| max_upload_size | |
| id | 1739156 |
| size | 105,338 |
The thinnest yt-dlp wrapper. Contains methods for all command options.
[dependencies]
ytdlp-rs = "0.1.0"
Builder::("/path/to/yt-dlp")
.command_option_1()
.command_option_2()
.url(url)
.spawn()?
.wait()?;
let (stdout, stderr) = Builder::new("yt-dlp")
.extract_audio()
.format("123")
.run()?;
let collected = ParserBuilder::new()
.map(|s: String| serde_json::from_str(&s).unwrap())
.read_collect(stdout);