Fix broken terminal output

- Replaced println by report message call
This commit is contained in:
2022-04-26 00:21:29 +02:00
parent 9d976b49ab
commit 276ff194db
3 changed files with 119 additions and 99 deletions

View File

@@ -114,8 +114,8 @@ async fn download_job(urls: SyncQueue, reporter: UnboundedSender<DlReport>, cli_
let mut urls = urls.lock().await;
urls.pop_front().take()
} {
println!("Downloading {}", dlreq.url);
let reporter = DlReporter::new(dlreq.id as u32, reporter.clone());
report_msg!(reporter, "Downloading {}", dlreq.url);
// Resolve the zippy url to the direct download url if necessary
let url = match is_integrated_url(&dlreq.url) {