feat: Use ZIP files for playlist archives
It is more widely supported and could be later used for #194
This commit is contained in:
parent
226f1b8380
commit
e93ab7ed13
3 changed files with 6 additions and 6 deletions
|
@ -5,16 +5,16 @@
|
|||
|
||||
namespace Alltube;
|
||||
|
||||
use Barracuda\ArchiveStream\TarArchive;
|
||||
use Barracuda\ArchiveStream\ZipArchive;
|
||||
use GuzzleHttp\Psr7\Stream;
|
||||
use Psr\Http\Message\StreamInterface;
|
||||
|
||||
/**
|
||||
* Class used to create a Tar archive from playlists and stream it to the browser.
|
||||
* Class used to create a Zip archive from playlists and stream it to the browser.
|
||||
*
|
||||
* @link https://github.com/php-fig/http-message/blob/master/src/StreamInterface.php
|
||||
*/
|
||||
class PlaylistArchiveStream extends TarArchive implements StreamInterface
|
||||
class PlaylistArchiveStream extends ZipArchive implements StreamInterface
|
||||
{
|
||||
/**
|
||||
* videos to add in the archive.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue