minor status name changes
This commit is contained in:
parent
38dc9c1ec6
commit
3708734428
4 changed files with 10 additions and 8 deletions
|
|
@ -469,6 +469,8 @@ class Download:
|
|||
ff = await ffprobe(status.get("filename"))
|
||||
self.info.extras["is_video"] = ff.has_video()
|
||||
self.info.extras["is_audio"] = ff.has_audio()
|
||||
if ff.has_video():
|
||||
self.info.extras["duration"] = ff.video[0].duration_seconds()
|
||||
except Exception as e:
|
||||
self.info.extras["is_video"] = True
|
||||
self.info.extras["is_audio"] = True
|
||||
|
|
|
|||
|
|
@ -649,10 +649,10 @@ const setStatus = item => {
|
|||
}
|
||||
|
||||
if (item.extras?.is_premiere) {
|
||||
return 'Premiere'
|
||||
return 'Premiered'
|
||||
}
|
||||
|
||||
return item.is_live ? 'Live Ended' : 'Completed'
|
||||
return item.is_live ? 'Streamed' : 'Completed'
|
||||
}
|
||||
|
||||
if ('error' === item.status) {
|
||||
|
|
@ -660,14 +660,14 @@ const setStatus = item => {
|
|||
}
|
||||
|
||||
if ('cancelled' === item.status) {
|
||||
return display_style.value === 'cards' ? 'User Cancelled' : 'Cancelled'
|
||||
return 'Cancelled'
|
||||
}
|
||||
|
||||
if ('not_live' === item.status) {
|
||||
if (item.extras?.is_premiere) {
|
||||
return 'Premiere'
|
||||
}
|
||||
return display_style.value === 'cards' ? 'Live Stream' : 'Live'
|
||||
return display_style.value === 'cards' ? 'Stream' : 'Live'
|
||||
}
|
||||
|
||||
return item.status
|
||||
|
|
|
|||
|
|
@ -28,7 +28,7 @@
|
|||
<div class="field">
|
||||
<label class="label is-inline" for="import_string">
|
||||
<span class="icon"><i class="fa-solid fa-file-import" /></span>
|
||||
Import form pre-existing preset
|
||||
Import from pre-existing preset
|
||||
</label>
|
||||
<div class="control is-expanded">
|
||||
<div class="select is-fullwidth">
|
||||
|
|
|
|||
|
|
@ -310,15 +310,15 @@ const setStatus = item => {
|
|||
}
|
||||
|
||||
if ('downloading' === item.status && item.is_live) {
|
||||
return 'Live Streaming'
|
||||
return 'Streaming'
|
||||
}
|
||||
|
||||
if ('preparing' === item.status) {
|
||||
return ag(item, 'extras.external_downloader') ? 'External DL' : 'Preparing..';
|
||||
return ag(item, 'extras.external_downloader') ? 'External-DL' : 'Preparing..';
|
||||
}
|
||||
|
||||
if (!item.status) {
|
||||
return 'Unknown..'
|
||||
return 'Unknown...'
|
||||
}
|
||||
|
||||
return ucFirst(item.status)
|
||||
|
|
|
|||
Loading…
Reference in a new issue