No Aria2 spam

This commit is contained in:
Henk
2022-09-21 19:36:57 +02:00
parent a5f2ab42d6
commit 06f4d9addf

View File

@ -186,7 +186,7 @@ def _download_with_aria2(aria2_config: str, total_length: int, directory: str =
if bar != "": if bar != "":
try: try:
print(bar, end="\n") print(bar, end="\r")
try: try:
emit('from_server', {'cmd': 'model_load_status', 'data': bar.replace(" ", " ")}, broadcast=True) emit('from_server', {'cmd': 'model_load_status', 'data': bar.replace(" ", " ")}, broadcast=True)
except: except: