Mithronn / rusty_ytdl

A Rust library for Youtube video searcher and downloader
https://docs.rs/rusty_ytdl
MIT License
107 stars 20 forks source link

Where does the file get downloaded to? #4

Closed omeldar closed 1 year ago

omeldar commented 1 year ago

Using this

use text_io::read;
use rusty_ytdl::*;

#[tokio::main]
async fn main() {
    let url: String = read!();

    let video_options = VideoOptions {
        quality: VideoQuality::Highest,
        filter: VideoSearchOptions::VideoAuido,
        ..Default::default()
    };

    let video = Video::new_with_options(url, video_options).unwrap();
    let a: Result<Vec<u8>, VideoError> = video.download().await;
}

I do not find any file anywhere. No error thrown as well.

omeldar commented 1 year ago

Nevermind I found it, its just the buffer not to file. Maybe add some documentation on how to download to file at root repository.