From 080bf1358dd9054202d02614e776ab99f6d9845f Mon Sep 17 00:00:00 2001 From: Varun Patil Date: Sun, 15 Oct 2023 14:28:18 -0700 Subject: [PATCH] admin: show expected go-vod version Signed-off-by: Varun Patil --- lib/Controller/AdminController.php | 3 ++- src/components/admin/AdminTypes.ts | 1 + src/components/admin/sections/VideoTranscoder.vue | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/Controller/AdminController.php b/lib/Controller/AdminController.php index c1f59d18..f31d59b3 100644 --- a/lib/Controller/AdminController.php +++ b/lib/Controller/AdminController.php @@ -155,10 +155,11 @@ class AdminController extends GenericApiController $extGoVod = Util::getSystemConfig('memories.vod.external'); $status['govod'] = $this->getExecutableStatus( static fn () => BinExt::getGoVodBin(), - static fn ($p) => BinExt::testStartGoVod(), + static fn () => BinExt::testStartGoVod(), !$extGoVod, !$extGoVod, ); + $status['govod_want'] = BinExt::GOVOD_VER; // Check for VA-API device $devPath = '/dev/dri/renderD128'; diff --git a/src/components/admin/AdminTypes.ts b/src/components/admin/AdminTypes.ts index 6ad6a7f9..9a20fcac 100644 --- a/src/components/admin/AdminTypes.ts +++ b/src/components/admin/AdminTypes.ts @@ -57,6 +57,7 @@ export type ISystemStatus = { ffmpeg: IBinaryStatus; ffprobe: IBinaryStatus; govod: IBinaryStatus; + govod_want: string; vaapi_dev: 'ok' | 'not_found' | 'not_readable'; action_token: string; diff --git a/src/components/admin/sections/VideoTranscoder.vue b/src/components/admin/sections/VideoTranscoder.vue index f52d80ab..9f51455f 100644 --- a/src/components/admin/sections/VideoTranscoder.vue +++ b/src/components/admin/sections/VideoTranscoder.vue @@ -24,7 +24,7 @@ @update:checked="update('memories.vod.external')" type="switch" > - {{ t('memories', 'Enable external transcoder (go-vod)') }} + {{ t('memories', 'Enable external transcoder (go-vod {version})', { version: status?.govod_want }) }}