diff --git a/lib/Command/VideoSetup.php b/lib/Command/VideoSetup.php index 48a92bfc..a827226d 100644 --- a/lib/Command/VideoSetup.php +++ b/lib/Command/VideoSetup.php @@ -88,18 +88,22 @@ class VideoSetup extends Command // Check go-vod binary $output->writeln('Checking for go-vod binary'); + $goVodPath = $this->config->getSystemValue('memories.transcoder', false); - // Detect architecture - $arch = \OCA\Memories\Util::getArch(); + if (false === $goVodPath) { + // Detect architecture + $arch = \OCA\Memories\Util::getArch(); - if (!$arch) { - $output->writeln('Compatible go-vod binary not found'); - $this->suggestGoVod($output); + if (!$arch) { + $output->writeln('Compatible go-vod binary not found'); + $this->suggestGoVod($output); - return $this->suggestDisable($output); + return $this->suggestDisable($output); + } + + $goVodPath = realpath(__DIR__."/../../exiftool-bin/go-vod-{$arch}"); } - $goVodPath = realpath(__DIR__."/../../exiftool-bin/go-vod-{$arch}"); $output->writeln("Trying go-vod from {$goVodPath}"); chmod($goVodPath, 0755);