1
0
mirror of https://github.com/Rudloff/alltube.git synced 2024-06-24 07:26:41 +02:00

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