diff --git a/app/library/Download.py b/app/library/Download.py index 92c0e0d5..34fd39cd 100644 --- a/app/library/Download.py +++ b/app/library/Download.py @@ -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 diff --git a/ui/components/History.vue b/ui/components/History.vue index 822650f9..88508196 100644 --- a/ui/components/History.vue +++ b/ui/components/History.vue @@ -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 diff --git a/ui/components/PresetForm.vue b/ui/components/PresetForm.vue index 44116009..d4b56f73 100644 --- a/ui/components/PresetForm.vue +++ b/ui/components/PresetForm.vue @@ -28,7 +28,7 @@