Fixed big in showing when live stream will start.
This commit is contained in:
parent
ff7bd2fdeb
commit
6e1ac4c1a0
2 changed files with 9 additions and 3 deletions
|
|
@ -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(
|
||||
|
|
|
|||
|
|
@ -82,7 +82,7 @@
|
|||
<div class="column is-12" v-if="item.error">
|
||||
<span class="has-text-danger">{{ item.error }}</span>
|
||||
</div>
|
||||
<div class="column is-12" v-if="!item.error && item.msg && item.msg.length() > 0">
|
||||
<div class="column is-12" v-if="showMessage(item)">
|
||||
<span class="has-text-danger">{{ item.msg }}</span>
|
||||
</div>
|
||||
<div class="column is-4 has-text-centered" v-if="!item.live_in">
|
||||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue