Provide config toggle to disable the 'convert seek' function (#311)
* Provide config toggle to disable the 'convert seek' function in the frontend * Add convertSeek config option to config.example * Only send from/to if convertSeek is activated
This commit is contained in:
parent
bfdb349a2b
commit
83863bd66c
5 changed files with 19 additions and 2 deletions
|
@ -101,8 +101,12 @@ class DownloadController extends BaseController
|
|||
*/
|
||||
private function getConvertedAudioResponse(Request $request, Response $response)
|
||||
{
|
||||
$from = $request->getQueryParam('from');
|
||||
$to = $request->getQueryParam('to');
|
||||
$from = null;
|
||||
$to = null;
|
||||
if ($this->config->convertSeek) {
|
||||
$from = $request->getQueryParam('from');
|
||||
$to = $request->getQueryParam('to');
|
||||
}
|
||||
|
||||
$response = $response->withHeader(
|
||||
'Content-Disposition',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue