From 6e1ac4c1a062e4f5c17d8538290e42ef7ea58f0c Mon Sep 17 00:00:00 2001 From: ArabCoders Date: Sun, 31 Dec 2023 18:13:05 +0300 Subject: [PATCH] Fixed big in showing when live stream will start. --- app/src/Download.py | 2 -- frontend/src/components/Page-Completed.vue | 10 +++++++++- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/app/src/Download.py b/app/src/Download.py index 317b7568..bde97203 100644 --- a/app/src/Download.py +++ b/app/src/Download.py @@ -199,8 +199,6 @@ class Download: self.info.status = status['status'] self.info.msg = status.get('msg') - if 'error' == self.info.status: - self.info.error = status.get('msg') if 'downloaded_bytes' in status: total = status.get('total_bytes') or status.get( diff --git a/frontend/src/components/Page-Completed.vue b/frontend/src/components/Page-Completed.vue index a81465fb..55909b70 100644 --- a/frontend/src/components/Page-Completed.vue +++ b/frontend/src/components/Page-Completed.vue @@ -82,7 +82,7 @@
{{ item.error }}
-
+
{{ item.msg }}
@@ -229,6 +229,14 @@ const hasError = (item) => { return (item.error || (item.msg && item.msg.length > 0)) ? true : false; } +const showMessage = (item) => { + if (!item?.msg || item.msg === item?.error) { + return false + } + + return item.msg.length > 0; +} + const hasFailed = computed(() => { if (Object.keys(props.completed)?.length < 0) { return false;