Fall back to "best" for audio conversion when "bestaudio" is not available (fixes #269)

This commit is contained in:
Pierre Rudloff 2020-04-04 17:52:55 +02:00
parent ae7d67557f
commit 09e372175f

View file

@ -130,7 +130,7 @@ class DownloadController extends BaseController
return $frontController->password($request, $response);
} catch (Exception $e) {
// If MP3 is not available, we convert it.
$this->video = $this->video->withFormat('bestaudio');
$this->video = $this->video->withFormat('bestaudio/best');
return $this->getConvertedAudioResponse($request, $response);
}