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:
Pierre Rudloff 2018-06-03 18:27:37 +02:00
parent e5ef794c70
commit 1e4e6b52be

View file

@ -97,7 +97,9 @@ class FrontController
$session_factory = new SessionFactory(); $session_factory = new SessionFactory();
$session = $session_factory->newInstance($cookies); $session = $session_factory->newInstance($cookies);
$this->sessionSegment = $session->getSegment(self::class); $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'; $this->defaultFormat = 'best';
} }
} }