This commit is contained in:
genuineparts 2025-05-01 13:04:14 +02:00
parent 912aa99054
commit 22437918d9
4 changed files with 44 additions and 10 deletions

View file

@ -278,8 +278,8 @@ class DownloadController extends BaseController
$videoUrls = $this->video->getUrl();
} catch (EmptyUrlException $e) {
/*
* If this happens it is probably a playlist
* so it will either be handled by getStream() or throw an exception anyway.
If this happens it is probably a playlist
so it will either be handled by getStream() or throw an exception anyway.
*/
$videoUrls = [];
}
@ -327,7 +327,7 @@ class DownloadController extends BaseController
$process = $this->downloader->getConvertedStream(
$this->video,
$request->getQueryParam('customBitrate'),
$request->getQueryParam('customFormat')
$request->getQueryParam('customFormat')
);
$response = $response->withBody(new Stream($process));
}