Use only MP3 for audio

This commit is contained in:
Pierre Rudloff 2016-05-04 16:13:32 +02:00
parent 44f16b0b3b
commit c3237251da

View file

@ -119,7 +119,7 @@ class FrontController
if (isset($params["url"])) {
if (isset($params['audio'])) {
try {
$url = $this->download->getURL($params["url"], 'bestaudio[protocol^=http]');
$url = $this->download->getURL($params["url"], 'mp3[protocol^=http]');
return $response->withRedirect($url);
} catch (\Exception $e) {
$video = $this->download->getJSON($params["url"], 'best');