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,
|
Some(av) => av,
|
||||||
None => return Err(DownloadError::NoFormatFound),
|
None => return Err(DownloadError::NoFormatFound),
|
||||||
};
|
};
|
||||||
|
|
||||||
let output_path = make_download_path(&info, &av)?;
|
let output_path = make_download_path(&info, &av)?;
|
||||||
|
YtDlp::download(url, &av.format_id, output_path.as_str()).await?;
|
||||||
|
|
||||||
todo!()
|
Ok(output_path)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue