getURL() should not return an array

This commit is contained in:
Pierre Rudloff 2016-04-08 20:08:04 +02:00
parent f7f0a7b7f4
commit f14bec35ea
3 changed files with 13 additions and 11 deletions

View file

@ -104,7 +104,7 @@ class VideoDownload
* @param string $url URL of page
* @param string $format Format to use for the video
*
* @return string JSON
* @return object Decoded JSON
* */
public function getJSON($url, $format = null)
{
@ -150,7 +150,7 @@ class VideoDownload
if (!$process->isSuccessful()) {
throw new \Exception($process->getErrorOutput());
} else {
return array('success'=>true, 'url'=>$process->getOutput());
return $process->getOutput();
}
}