Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

Commit

Permalink
Merge branch 'release-1.1.3'
Browse files Browse the repository at this point in the history
  • Loading branch information
Rudloff committed Jun 4, 2018
2 parents f046171 + f0f9ef3 commit 67283f5
Show file tree
Hide file tree
Showing 15 changed files with 470 additions and 330 deletions.
2 changes: 1 addition & 1 deletion classes/LocaleManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ public function getLocale()
public function setLocale(Locale $locale)
{
putenv('LANG='.$locale);
setlocale(LC_ALL, [$locale, $locale.'.utf8']);
setlocale(LC_ALL, [$locale.'.utf8', $locale]);
$this->curLocale = $locale;
$this->sessionSegment->set('locale', $locale);
}
Expand Down
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"phpunit/phpunit": "~6.5.2",
"doctrine/instantiator": "~1.0.0",
"ffmpeg/ffmpeg": "4.0",
"rg3/youtube-dl": "2018.05.01",
"rg3/youtube-dl": "2018.06.02",
"heroku/heroku-buildpack-php": "*",
"anam/phantomjs-linux-x86-binary": "~2.1.1"
},
Expand All @@ -39,10 +39,10 @@
"type": "package",
"package": {
"name": "rg3/youtube-dl",
"version": "2018.05.01",
"version": "2018.06.02",
"dist": {
"type": "zip",
"url": "https://github.com/rg3/youtube-dl/archive/2018.05.01.zip"
"url": "https://github.com/rg3/youtube-dl/archive/2018.06.02.zip"
}
}
},
Expand Down
123 changes: 90 additions & 33 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 4 additions & 2 deletions controllers/FrontController.php
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,9 @@ public function __construct(ContainerInterface $container, Config $config = null
$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';
}
}
Expand Down Expand Up @@ -466,7 +468,7 @@ private function getRedirectResponse($url, $format, Response $response, Request
} catch (EmptyUrlException $e) {
/*
If this happens it is probably a playlist
so it will either be handle by getStream() or throw an exception anyway.
so it will either be handled by getStream() or throw an exception anyway.
*/
$videoUrls = [];
}
Expand Down
Loading

0 comments on commit 67283f5

Please sign in to comment.