Fix video-setup checks (fix #223)

pull/245/head
Varun Patil 2022-11-23 01:38:36 -08:00
parent 776758bd68
commit 92d6d9a5e2
1 changed files with 3 additions and 4 deletions

View File

@ -90,18 +90,17 @@ class VideoSetup extends Command
$output->writeln('Checking for go-vod binary');
$goVodPath = $this->config->getSystemValue('memories.transcoder', false);
if (false === $goVodPath) {
if (!\is_string($goVodPath) || !file_exists($goVodPath)) {
// Detect architecture
$arch = \OCA\Memories\Util::getArch();
$goVodPath = realpath(__DIR__."/../../exiftool-bin/go-vod-{$arch}");
if (!$arch) {
if (!$goVodPath) {
$output->writeln('<error>Compatible go-vod binary not found</error>');
$this->suggestGoVod($output);
return $this->suggestDisable($output);
}
$goVodPath = realpath(__DIR__."/../../exiftool-bin/go-vod-{$arch}");
}
$output->writeln("Trying go-vod from {$goVodPath}");