From 756ff3665310c51ecad363bd6dbe615f7052f864 Mon Sep 17 00:00:00 2001 From: Pierre Rudloff Date: Fri, 26 Apr 2019 20:38:14 +0200 Subject: [PATCH] fix: Wrong variable name --- classes/streams/YoutubeStream.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/classes/streams/YoutubeStream.php b/classes/streams/YoutubeStream.php index bb804c0..9c413aa 100644 --- a/classes/streams/YoutubeStream.php +++ b/classes/streams/YoutubeStream.php @@ -25,7 +25,7 @@ class YoutubeStream extends AppendStream $stream = $video->getHttpResponse(); $contentLenghtHeader = $stream->getHeader('Content-Length'); - $curSize = 0; + $rangeStart = 0; while ($rangeStart < $contentLenghtHeader[0]) { $rangeEnd = $rangeStart + $video->downloader_options->http_chunk_size;