Skip to content

A self-hosted media server and file management system

fix: video file title is not exposed on frontend and impossible to find if metadata titles are malformed

aminnausinfc2b4ba9c8ac
diff --git a/resources/js/components/cards/VideoCard.vue b/resources/js/components/cards/VideoCard.vue
index db54688d..5d495488 100755
--- a/resources/js/components/cards/VideoCard.vue
+++ b/resources/js/components/cards/VideoCard.vue
@@ -62,7 +62,7 @@ const contextMenuItems = computed(() => {
class="relative flex flex-wrap flex-col gap-x-8 gap-y-4 p-3 w-full shadow rounded-md ring-inset cursor-pointer dark:bg-primary-dark-800/70 dark:hover:bg-violet-700/70 bg-neutral-50 hover:bg-violet-400/30 odd:bg-neutral-100 dark:odd:bg-primary-dark-600"
:videoData-id="videoData.id"
:videoData-path="`../${videoData.path}`"
- :title="videoData.title"
+ :title="`${videoData.title}\n${videoData.name}`"
@contextmenu="
(e: any) => {
setContextMenu(e, { items: contextMenuItems });
@@ -74,7 +74,7 @@ const contextMenuItems = computed(() => {
class="items-end"
v-if="videoData.description"
:content="videoData.description"
- :content-title="videoData.title"
+ :content-title="`${videoData.title}\n${videoData.name}`"
:hover-card-delay="400"
:hover-card-leave-delay="300"
>
@@ -87,7 +87,7 @@ const contextMenuItems = computed(() => {
</span>
</template>
</HoverCard>
- <h3 v-else class="line-clamp-1 break-all" :title="videoData.title">
+ <h3 v-else class="line-clamp-1 break-all" :title="`${videoData.title}\n${videoData.name}`">
{{ title }}
</h3>
<HoverCard