getURL() should not return an array
This commit is contained in:
parent
f7f0a7b7f4
commit
f14bec35ea
3 changed files with 13 additions and 11 deletions
|
@ -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();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue