diff --git a/Pipfile.lock b/Pipfile.lock index f553e2de..605b95c9 100644 --- a/Pipfile.lock +++ b/Pipfile.lock @@ -1247,12 +1247,12 @@ }, "yt-dlp": { "hashes": [ - "sha256:2fc08a5221a0379628ac4e7324c6c69a95b9fdfa7a7ca3187444b3b7451e38be", - "sha256:ac0e72b5a9017ba104b4258546201a7cedc38e8bd20727e0c63b77c829b425e9" + "sha256:8e7e246e2a5a2cff0a9c13db46844a37a547680702012058c94ec18fce0ca25a", + "sha256:f7ea19afb64f8e457a1b9598ddb67f8deaa313bf1d57abd5612db9272ab10795" ], "index": "pypi", "markers": "python_version >= '3.9'", - "version": "==2024.12.23" + "version": "==2025.1.12" } }, "develop": {} diff --git a/app/library/Download.py b/app/library/Download.py index 268c04b6..2877f219 100644 --- a/app/library/Download.py +++ b/app/library/Download.py @@ -5,7 +5,10 @@ import logging import multiprocessing import os import shutil +import time + from multiprocessing.managers import SyncManager +from email.utils import formatdate import yt_dlp @@ -369,6 +372,7 @@ class Download: ff = await ffprobe(status.get("filename")) self.info.extras['is_video'] = ff.has_video() self.info.extras['is_audio'] = ff.has_audio() + self.info.datetime = str(formatdate(time.time())) 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 08ce1aea..9e41e712 100644 --- a/ui/components/History.vue +++ b/ui/components/History.vue @@ -75,7 +75,8 @@
- +
@@ -114,7 +115,7 @@
- LIVE stream is scheduled to start at {{ moment(item.live_in).format() }} + Live stream is scheduled to start at {{ moment(item.live_in).format() }}
@@ -130,7 +131,7 @@ :class="{ 'has-text-success': item.status === 'finished', 'has-text-danger': item.status !== 'finished' }"> - Stream Ended + Live Ended {{ ucFirst(item.status) }} @@ -139,7 +140,7 @@ - Live Stream + Live
@@ -151,8 +152,8 @@
- + {{ moment(item.live_in).fromNow() }}
@@ -202,6 +203,14 @@
+
+ +
@@ -245,6 +254,7 @@ import { useStorage } from '@vueuse/core' import { makeDownload, formatBytes, ucFirst } from '~/utils/index' import toast from '~/plugins/toast' +const emitter = defineEmits(['getInfo']) const config = useConfigStore() const stateStore = useStateStore() const socket = useSocketStore() diff --git a/ui/components/NewDownload.vue b/ui/components/NewDownload.vue index ae3662f1..1f91c007 100644 --- a/ui/components/NewDownload.vue +++ b/ui/components/NewDownload.vue @@ -107,10 +107,10 @@
-
@@ -132,13 +132,13 @@ -