Fix video-setup checks (fix #223)
parent
776758bd68
commit
92d6d9a5e2
|
@ -90,18 +90,17 @@ class VideoSetup extends Command
|
||||||
$output->writeln('Checking for go-vod binary');
|
$output->writeln('Checking for go-vod binary');
|
||||||
$goVodPath = $this->config->getSystemValue('memories.transcoder', false);
|
$goVodPath = $this->config->getSystemValue('memories.transcoder', false);
|
||||||
|
|
||||||
if (false === $goVodPath) {
|
if (!\is_string($goVodPath) || !file_exists($goVodPath)) {
|
||||||
// Detect architecture
|
// Detect architecture
|
||||||
$arch = \OCA\Memories\Util::getArch();
|
$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>');
|
$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}");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
$output->writeln("Trying go-vod from {$goVodPath}");
|
$output->writeln("Trying go-vod from {$goVodPath}");
|
||||||
|
|
Loading…
Reference in New Issue