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,7 +88,9 @@ 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);
if (false === $goVodPath) {
// Detect architecture // Detect architecture
$arch = \OCA\Memories\Util::getArch(); $arch = \OCA\Memories\Util::getArch();
@ -100,6 +102,8 @@ class VideoSetup extends Command
} }
$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);