finish implementing download function
This commit is contained in:
parent
69193d9f94
commit
fed938d04e
1 changed files with 3 additions and 1 deletions
|
|
@ -39,7 +39,9 @@ pub async fn download(url: &str) -> Result<String, DownloadError> {
|
|||
Some(av) => av,
|
||||
None => return Err(DownloadError::NoFormatFound),
|
||||
};
|
||||
let output_path = make_download_path(&info, &av)?;
|
||||
|
||||
todo!()
|
||||
let output_path = make_download_path(&info, &av)?;
|
||||
YtDlp::download(url, &av.format_id, output_path.as_str()).await?;
|
||||
|
||||
Ok(output_path)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue