finish implementing download function

This commit is contained in:
mykola2312 2024-02-21 19:27:01 +02:00
parent 6300a0cbfc
commit c337c6ea98

View file

@ -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)
}