From 2e4587bd6ad6bde68dd56868e47b17ee2a5c8601 Mon Sep 17 00:00:00 2001 From: jb-alvarado Date: Thu, 12 Sep 2024 20:49:25 +0200 Subject: [PATCH] correct storage path, fix ffplayout:#746 --- components/PlaylistGenerator.vue | 2 +- components/PlaylistTable.vue | 4 ++-- pages/player.vue | 22 ++++++++++++++-------- 3 files changed, 17 insertions(+), 11 deletions(-) diff --git a/components/PlaylistGenerator.vue b/components/PlaylistGenerator.vue index bea43a40..9c6c4ae7 100644 --- a/components/PlaylistGenerator.vue +++ b/components/PlaylistGenerator.vue @@ -347,7 +347,7 @@ function addFolderToTemplate(event: any, item: TemplateItem) { event.item.remove() - const storagePath = configStore.playout.storage.path + const storagePath = configStore.channels[configStore.id].storage_path const navPath = mediaStore.folderCrumbs[mediaStore.folderCrumbs.length - 1].path const sourcePath = `${storagePath}/${navPath}/${mediaStore.folderList.folders[o].name}`.replace(/\/[/]+/g, '/') diff --git a/components/PlaylistTable.vue b/components/PlaylistTable.vue index 43af0933..78b58892 100644 --- a/components/PlaylistTable.vue +++ b/components/PlaylistTable.vue @@ -78,7 +78,7 @@ '!bg-lime-500/30': playlistStore.playoutIsRunning && listDate === todayDate && index === currentIndex, '!bg-amber-600/40': element.overtime, - 'text-base-content/60': element.category === 'advertisement' + 'text-base-content/50': element.category === 'advertisement' }" > @@ -253,7 +253,7 @@ function addClip(event: any) { event.item?.remove() - const storagePath = configStore.playout.storage.path + const storagePath = configStore.channels[configStore.id].storage_path const sourcePath = `${storagePath}/${mediaStore.folderTree.source}/${mediaStore.folderTree.files[o].name}`.replace( /\/[/]+/g, '/' diff --git a/pages/player.vue b/pages/player.vue index ddb22790..2e2692dc 100644 --- a/pages/player.vue +++ b/pages/player.vue @@ -170,7 +170,12 @@
{{ t('player.file') }}
- +