video-setup: don't overwrite manually configured transcoder (#224)

pull/231/head
Varun Patil 2022-11-21 02:43:03 -08:00
parent f7749c6ba2
commit 6c74fdf340
1 changed files with 11 additions and 7 deletions

View File

@ -88,18 +88,22 @@ class VideoSetup extends Command
// Check go-vod binary // Check go-vod binary
$output->writeln('Checking for go-vod binary'); $output->writeln('Checking for go-vod binary');
$goVodPath = $this->config->getSystemValue('memories.transcoder', false);
// Detect architecture if (false === $goVodPath) {
$arch = \OCA\Memories\Util::getArch(); // Detect architecture
$arch = \OCA\Memories\Util::getArch();
if (!$arch) { if (!$arch) {
$output->writeln('<error>Compatible go-vod binary not found</error>'); $output->writeln('<error>Compatible go-vod binary not found</error>');
$this->suggestGoVod($output); $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}"); $output->writeln("Trying go-vod from {$goVodPath}");
chmod($goVodPath, 0755); chmod($goVodPath, 0755);