diff --git a/Gruntfile.js b/Gruntfile.js index 91a7b8d..b198735 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -27,7 +27,7 @@ module.exports = function (grunt) { bin: 'vendor/bin/phpcs' }, php: { - src: ['*.php', 'classes/*.php', 'controllers/*.php'] + src: ['*.php', 'classes/*.php', 'classes/*/*.php', 'controllers/*.php'] }, tests: { src: ['tests/*.php'] diff --git a/classes/exceptions/EmptyUrlException.php b/classes/exceptions/EmptyUrlException.php index 232559a..a1ba771 100644 --- a/classes/exceptions/EmptyUrlException.php +++ b/classes/exceptions/EmptyUrlException.php @@ -1,4 +1,5 @@ = $contentLenghtHeader[0]) { $rangeEnd = $contentLenghtHeader[0] - 1; } - $response = $video->getHttpResponse(['Range' => 'bytes='.$rangeStart.'-'.$rangeEnd]); + $response = $video->getHttpResponse(['Range' => 'bytes=' . $rangeStart . '-' . $rangeEnd]); $this->addStream(new YoutubeChunkStream($response)); $rangeStart = $rangeEnd + 1; }