fix: Set default format to "bestvideo+bestaudio" when remux mode is enabled
This fixes an issue on websites like Reddit that only server separate video/audio files See #173
This commit is contained in:
parent
e5ef794c70
commit
1e4e6b52be
1 changed files with 3 additions and 1 deletions
|
@ -97,7 +97,9 @@ class FrontController
|
|||
$session_factory = new SessionFactory();
|
||||
$session = $session_factory->newInstance($cookies);
|
||||
$this->sessionSegment = $session->getSegment(self::class);
|
||||
if ($this->config->stream) {
|
||||
if ($this->config->remux) {
|
||||
$this->defaultFormat = 'bestvideo+bestaudio';
|
||||
} elseif ($this->config->stream) {
|
||||
$this->defaultFormat = 'best';
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue