Simplify get_readable_msg code
Signed-off-by: lzzy12 <jhashivam2020@gmail.com>
This commit is contained in:
parent
1094be1f4a
commit
6dfb3e9863
|
|
@ -107,14 +107,7 @@ def get_readable_message():
|
||||||
msg = ""
|
msg = ""
|
||||||
for download in list(download_dict.values()):
|
for download in list(download_dict.values()):
|
||||||
msg += f"<i>{download.name()}</i> - "
|
msg += f"<i>{download.name()}</i> - "
|
||||||
if download.status() == MirrorStatus.STATUS_UPLOADING:
|
msg += download.status()
|
||||||
msg += "Uploading\n\n"
|
|
||||||
elif download.status() == MirrorStatus.STATUS_ARCHIVING:
|
|
||||||
msg += "Archiving\n\n"
|
|
||||||
elif download.status() == MirrorStatus.STATUS_WAITING:
|
|
||||||
msg += "Queued\n\n"
|
|
||||||
elif download.status() == MirrorStatus.STATUS_DOWNLOADING:
|
|
||||||
msg += "Downloading"
|
|
||||||
if download.status() != MirrorStatus.STATUS_ARCHIVING:
|
if download.status() != MirrorStatus.STATUS_ARCHIVING:
|
||||||
msg += f"<code>{get_progress_bar_string(download)} {download.progress()}</code> of " \
|
msg += f"<code>{get_progress_bar_string(download)} {download.progress()}</code> of " \
|
||||||
f"{download.size()}" \
|
f"{download.size()}" \
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue