feat: Add a way to convert an entire playlist

Closes #194
This commit is contained in:
Pierre Rudloff 2019-04-21 22:56:07 +02:00
parent 4db519c2ef
commit 70475f83d4
3 changed files with 38 additions and 5 deletions

View file

@ -6,7 +6,6 @@
namespace Alltube;
use Barracuda\ArchiveStream\ZipArchive;
use GuzzleHttp\Psr7\Stream;
use Psr\Http\Message\StreamInterface;
/**
@ -33,9 +32,9 @@ class PlaylistArchiveStream extends ZipArchive implements StreamInterface
/**
* Current video being streamed to the archive.
*
* @var Stream
* @var StreamInterface
*/
private $curVideoStream;
protected $curVideoStream;
/**
* True if the archive is complete.
@ -234,7 +233,7 @@ class PlaylistArchiveStream extends ZipArchive implements StreamInterface
*
* @return void
*/
private function startVideoStream(Video $video)
protected function startVideoStream(Video $video)
{
$response = $video->getHttpResponse();