feat: Make streaming optional when stream mode is enabled

Closes #218
This commit is contained in:
Pierre Rudloff 2019-04-28 00:25:03 +02:00
parent 9313bc2230
commit b91fe78dcd
3 changed files with 8 additions and 2 deletions

View file

@ -240,7 +240,7 @@ class DownloadController extends BaseController
}
if (count($videoUrls) > 1) {
return $this->getRemuxStream($request, $response);
} elseif ($this->config->stream) {
} elseif ($this->config->stream && (isset($this->video->entries) || $request->getQueryParam('stream'))) {
return $this->getStream($request, $response);
} else {
if (empty($videoUrls[0])) {