Use only MP3 for audio
This commit is contained in:
parent
44f16b0b3b
commit
c3237251da
1 changed files with 1 additions and 1 deletions
|
@ -119,7 +119,7 @@ class FrontController
|
||||||
if (isset($params["url"])) {
|
if (isset($params["url"])) {
|
||||||
if (isset($params['audio'])) {
|
if (isset($params['audio'])) {
|
||||||
try {
|
try {
|
||||||
$url = $this->download->getURL($params["url"], 'bestaudio[protocol^=http]');
|
$url = $this->download->getURL($params["url"], 'mp3[protocol^=http]');
|
||||||
return $response->withRedirect($url);
|
return $response->withRedirect($url);
|
||||||
} catch (\Exception $e) {
|
} catch (\Exception $e) {
|
||||||
$video = $this->download->getJSON($params["url"], 'best');
|
$video = $this->download->getJSON($params["url"], 'best');
|
||||||
|
|
Loading…
Reference in a new issue