skiped checking whether the php exec function is enabled when searching for binary path;fixed typo;
This commit is contained in:
@@ -202,11 +202,9 @@ class Helper
|
|||||||
$dataPath = \OC::$server->getSystemConfig()->getValue('datadirectory');
|
$dataPath = \OC::$server->getSystemConfig()->getValue('datadirectory');
|
||||||
$paths = ['/usr/local/sbin', '/usr/local/bin', '/usr/sbin', '/usr/bin', '/sbin', '/bin', '/opt/bin', $dataPath . "/bin"];
|
$paths = ['/usr/local/sbin', '/usr/local/bin', '/usr/sbin', '/usr/bin', '/sbin', '/bin', '/opt/bin', $dataPath . "/bin"];
|
||||||
$result = null;
|
$result = null;
|
||||||
if (self::is_function_enabled('exec')) {
|
$exeSniffer = new ExecutableFinder();
|
||||||
$exeSniffer = new ExecutableFinder();
|
// Returns null if nothing is found
|
||||||
// Returns null if nothing is found
|
$result = $exeSniffer->find($program, null, $paths);
|
||||||
$result = $exeSniffer->find($program, null, $paths);
|
|
||||||
}
|
|
||||||
// store the value for 5 minutes
|
// store the value for 5 minutes
|
||||||
$memcache->set($program, $result, 300);
|
$memcache->set($program, $result, 300);
|
||||||
return $result;
|
return $result;
|
||||||
|
|||||||
@@ -66,7 +66,7 @@ class Youtube
|
|||||||
|
|
||||||
public function setAudioQuality($value = 0)
|
public function setAudioQuality($value = 0)
|
||||||
{
|
{
|
||||||
$this->addOption('--audio-quality', $value);
|
$this->setOption('--audio-quality', $value);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function GetUrlOnly()
|
public function GetUrlOnly()
|
||||||
|
|||||||
Reference in New Issue
Block a user