minor status name changes

This commit is contained in:
arabcoders 2025-06-16 15:50:24 +03:00
parent 38dc9c1ec6
commit 3708734428
4 changed files with 10 additions and 8 deletions

View file

@ -469,6 +469,8 @@ class Download:
ff = await ffprobe(status.get("filename")) ff = await ffprobe(status.get("filename"))
self.info.extras["is_video"] = ff.has_video() self.info.extras["is_video"] = ff.has_video()
self.info.extras["is_audio"] = ff.has_audio() 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: except Exception as e:
self.info.extras["is_video"] = True self.info.extras["is_video"] = True
self.info.extras["is_audio"] = True self.info.extras["is_audio"] = True

View file

@ -649,10 +649,10 @@ const setStatus = item => {
} }
if (item.extras?.is_premiere) { 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) { if ('error' === item.status) {
@ -660,14 +660,14 @@ const setStatus = item => {
} }
if ('cancelled' === item.status) { if ('cancelled' === item.status) {
return display_style.value === 'cards' ? 'User Cancelled' : 'Cancelled' return 'Cancelled'
} }
if ('not_live' === item.status) { if ('not_live' === item.status) {
if (item.extras?.is_premiere) { if (item.extras?.is_premiere) {
return 'Premiere' return 'Premiere'
} }
return display_style.value === 'cards' ? 'Live Stream' : 'Live' return display_style.value === 'cards' ? 'Stream' : 'Live'
} }
return item.status return item.status

View file

@ -28,7 +28,7 @@
<div class="field"> <div class="field">
<label class="label is-inline" for="import_string"> <label class="label is-inline" for="import_string">
<span class="icon"><i class="fa-solid fa-file-import" /></span> <span class="icon"><i class="fa-solid fa-file-import" /></span>
Import form pre-existing preset Import from pre-existing preset
</label> </label>
<div class="control is-expanded"> <div class="control is-expanded">
<div class="select is-fullwidth"> <div class="select is-fullwidth">

View file

@ -310,15 +310,15 @@ const setStatus = item => {
} }
if ('downloading' === item.status && item.is_live) { if ('downloading' === item.status && item.is_live) {
return 'Live Streaming' return 'Streaming'
} }
if ('preparing' === item.status) { 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) { if (!item.status) {
return 'Unknown..' return 'Unknown...'
} }
return ucFirst(item.status) return ucFirst(item.status)