New tests

This commit is contained in:
Pierre Rudloff 2016-07-30 00:47:46 +02:00
parent 26388ea1b4
commit e3cec201ee
4 changed files with 92 additions and 6 deletions

View file

@ -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'));