New tests
This commit is contained in:
parent
26388ea1b4
commit
e3cec201ee
4 changed files with 92 additions and 6 deletions
|
@ -131,7 +131,7 @@ class VideoDownload
|
|||
if (!$process->isSuccessful()) {
|
||||
throw new \Exception($process->getErrorOutput());
|
||||
} else {
|
||||
return $process->getOutput();
|
||||
return trim($process->getOutput());
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -147,7 +147,7 @@ class VideoDownload
|
|||
);
|
||||
}
|
||||
|
||||
public function getConversionProcess($url, $format)
|
||||
public function getAudioStream($url, $format)
|
||||
{
|
||||
if (!shell_exec('which '.$this->config->avconv)) {
|
||||
throw(new \Exception('Can\'t find avconv or ffmpeg'));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue