video-setup: don't overwrite manually configured transcoder (#224)
parent
f7749c6ba2
commit
6c74fdf340
|
@ -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('<error>Compatible go-vod binary not found</error>');
|
||||
$this->suggestGoVod($output);
|
||||
if (!$arch) {
|
||||
$output->writeln('<error>Compatible go-vod binary not found</error>');
|
||||
$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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue