@@ -311,7 +316,8 @@
- {{ formatBytes(item.file_size) }}
+ {{
+ formatBytes(item.file_size) }}
@@ -361,7 +367,12 @@
- Information
+ yt-dlp Information
+
+
+
+
+ Local Information
@@ -435,7 +446,7 @@ import { getEmbedable, isEmbedable } from '~/utils/embedable'
import { formatBytes, makeDownload, uri } from '~/utils/index'
import Dropdown from './Dropdown.vue'
-const emitter = defineEmits(['getInfo', 'add_new'])
+const emitter = defineEmits(['getInfo', 'add_new', 'getItemInfo'])
const props = defineProps({
thumbnails: {
@@ -862,4 +873,14 @@ const is_queued = item => {
return item.live_in || item.extras?.live_in || item.extras?.release_in ? 'fa-spin fa-spin-10' : ''
}
+
+const makePath = item => {
+ if (!item?.filename) {
+ return ''
+ }
+
+ const real_path = eTrim(item.download_dir, '/') + '/' + sTrim(item.filename, '/')
+
+ return real_path.replace(config.app.download_path, '').replace(/^\//, '')
+}
diff --git a/ui/pages/index.vue b/ui/pages/index.vue
index 1a4fb358..bdf36c9f 100644
--- a/ui/pages/index.vue
+++ b/ui/pages/index.vue
@@ -49,13 +49,15 @@
get_info = url" :item="item_form"
@clear_form="item_form = {}" @remove_archive="" />
- get_info = url" :thumbnails="show_thumbnail" />
- get_info = url" @add_new="item => toNewDownload(item)" :thumbnails="show_thumbnail" />
-
+ view_info(url, false)" :thumbnails="show_thumbnail"
+ @getItemInfo="(id: string) => view_info(`/api/history/${id}`, true)" />
+ view_info(url, false)" @add_new="item => toNewDownload(item)"
+ :thumbnails="show_thumbnail" @getItemInfo="(id: string) => view_info(`/api/history/${id}`, true)" />
+
-