This is a simple wrapper for youtube-dl in rust.
```rust
use ytdrs::{YoutubeDL, ResultType, Arg};
use std::path::PathBuf;
use std::error::Error;
fn main() -> Result<(), Box
// start download
let download = ytd.download();
// check what the result is and print out the path to the download or the error
match download.result_type() {
ResultType::SUCCESS => println!("Your download: {}", download.output_dir().to_string_lossy()),
ResultType::IOERROR | ResultType::FAILURE =>
println!("Couldn't start download: {}", download.output()),
};
Ok(())
} ```