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
|
@ -380,10 +380,10 @@ class FrontController
|
|||
{
|
||||
if (isset($this->video->entries)) {
|
||||
$stream = new PlaylistArchiveStream($this->video);
|
||||
$response = $response->withHeader('Content-Type', 'application/x-tar');
|
||||
$response = $response->withHeader('Content-Type', 'application/zip');
|
||||
$response = $response->withHeader(
|
||||
'Content-Disposition',
|
||||
'attachment; filename="'.$this->video->title.'.tar"'
|
||||
'attachment; filename="'.$this->video->title.'.zip"'
|
||||
);
|
||||
|
||||
return $response->withBody($stream);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue