From 6f896efe992eb98e607ed5f259ff9430cc16df68 Mon Sep 17 00:00:00 2001 From: zixaphir Date: Fri, 13 Oct 2023 19:59:01 -0700 Subject: [PATCH] Oh, right, this is a *markdown* output. I can force it to be monospaced. Current known issue: dl model preview is currently downloading all previews to the same filename. It should just download one and stop. --- scripts/ch_lib/downloader.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/ch_lib/downloader.py b/scripts/ch_lib/downloader.py index 1f6ed028..0421af89 100644 --- a/scripts/ch_lib/downloader.py +++ b/scripts/ch_lib/downloader.py @@ -62,9 +62,9 @@ def alt_progressbar(percent:int) -> str: percent_as_int = int(percent) progress = "\u2588" * percent_as_int - remaining = "\u2003" * (100 - percent_as_int) + remaining = "\u00a0" * (100 - percent_as_int) - return f"[{progress}{remaining}] {percent}%" + return f"`[{progress}{remaining}] {percent}%`" def download_progress(url:str, file_path:str, total_size:int) -> bool | float: