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.2.3'
Browse files Browse the repository at this point in the history
  • Loading branch information
Rudloff committed Nov 13, 2018
2 parents 0cd5a5e + e9cec9d commit c240063
Show file tree
Hide file tree
Showing 7 changed files with 77 additions and 67 deletions.
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.2",
"rg3/youtube-dl": "2018.09.10",
"rg3/youtube-dl": "2018.11.07",
"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.09.10",
"version": "2018.11.07",
"dist": {
"type": "zip",
"url": "https://github.com/rg3/youtube-dl/archive/2018.09.10.zip"
"url": "https://github.com/rg3/youtube-dl/archive/2018.11.07.zip"
}
}
},
Expand Down
86 changes: 43 additions & 43 deletions composer.lock

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

14 changes: 13 additions & 1 deletion controllers/FrontController.php
Original file line number Diff line number Diff line change
Expand Up @@ -422,9 +422,21 @@ private function getStream($url, $format, Response $response, Request $request,
$body = new Stream($stream);
} else {
$client = new Client();
$stream = $client->request('GET', $video->url, ['stream' => true]);
$stream = $client->request(
'GET',
$video->url,
[
'stream' => true,
'headers' => ['Range' => $request->getHeader('Range')],
]
);
$response = $response->withHeader('Content-Type', $stream->getHeader('Content-Type'));
$response = $response->withHeader('Content-Length', $stream->getHeader('Content-Length'));
$response = $response->withHeader('Accept-Ranges', $stream->getHeader('Accept-Ranges'));
$response = $response->withHeader('Content-Range', $stream->getHeader('Content-Range'));
if ($stream->getStatusCode() == 206) {
$response = $response->withStatus(206);
}
$body = $stream->getBody();
}
if ($request->isGet()) {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "alltube",
"description": "HTML GUI for youtube-dl",
"version": "1.2.2",
"version": "1.2.3",
"author": "Pierre Rudloff",
"bugs": "https://github.com/Rudloff/alltube/issues",
"dependencies": {
Expand Down
Loading

0 comments on commit c240063

Please sign in to comment.