fixed the issue of not returning the default provided value when finding binary path
This commit is contained in:
@@ -201,7 +201,7 @@ class Helper
|
||||
}
|
||||
$dataPath = \OC::$server->getSystemConfig()->getValue('datadirectory');
|
||||
$paths = ['/usr/local/sbin', '/usr/local/bin', '/usr/sbin', '/usr/bin', '/sbin', '/bin', '/opt/bin', $dataPath . "/bin"];
|
||||
$result = null;
|
||||
$result = $default;
|
||||
$exeSniffer = new ExecutableFinder();
|
||||
// Returns null if nothing is found
|
||||
$result = $exeSniffer->find($program, $default, $paths);
|
||||
|
||||
@@ -60,7 +60,7 @@ class Youtube
|
||||
if (Helper::ffmpegInstalled()) {
|
||||
$this->addOption('--prefer-ffmpeg');
|
||||
$this->addOption('--add-metadata');
|
||||
$this->setOption('--metadata-from-title',"%(artist)s-%(title)s");
|
||||
$this->setOption('--metadata-from-title', "%(artist)s-%(title)s");
|
||||
$this->addOption('--extract-audio');
|
||||
}
|
||||
$this->outTpl = "/%(id)s-%(title)s.m4a";
|
||||
|
||||
Reference in New Issue
Block a user