mirror of
https://github.com/FliegendeWurst/KIT-ILIAS-downloader.git
synced 2024-08-28 04:04:18 +00:00
Always log new videos
This commit is contained in:
parent
3bf3b16648
commit
36a78eb4d9
@ -517,9 +517,7 @@ fn process(ilias: Arc<ILIAS>, path: PathBuf, obj: Object) -> impl std::future::F
|
||||
let mut reader = stream_reader(resp.bytes_stream().map_err(|x| {
|
||||
io::Error::new(io::ErrorKind::Other, x)
|
||||
}));
|
||||
if ilias.opt.verbose > 0 {
|
||||
println!("Saving video to {:?}", path);
|
||||
}
|
||||
println!("Saving video to {:?}", path);
|
||||
let file = AsyncFile::create(&path).await.unwrap();
|
||||
let mut file = BufWriter::new(file);
|
||||
tokio::io::copy(&mut reader, &mut file).await.unwrap();
|
||||
|
Loading…
Reference in New Issue
Block a user