mirror of
https://github.com/Rudloff/alltube.git
synced 2024-06-30 08:00:57 +02:00
Better way to get filename
This commit is contained in:
parent
442e2ec87c
commit
20ad5559be
|
@ -130,9 +130,7 @@ class FrontController
|
||||||
'Content-Disposition: attachment; filename="'.
|
'Content-Disposition: attachment; filename="'.
|
||||||
html_entity_decode(
|
html_entity_decode(
|
||||||
pathinfo(
|
pathinfo(
|
||||||
$this->download->getFilename(
|
$video->_filename,
|
||||||
$video->webpage_url
|
|
||||||
),
|
|
||||||
PATHINFO_FILENAME
|
PATHINFO_FILENAME
|
||||||
).'.mp3',
|
).'.mp3',
|
||||||
ENT_COMPAT,
|
ENT_COMPAT,
|
||||||
|
@ -152,9 +150,7 @@ class FrontController
|
||||||
'Content-Disposition: attachment; filename="'.
|
'Content-Disposition: attachment; filename="'.
|
||||||
html_entity_decode(
|
html_entity_decode(
|
||||||
pathinfo(
|
pathinfo(
|
||||||
$this->download->getFilename(
|
$video->_filename,
|
||||||
$video->webpage_url
|
|
||||||
),
|
|
||||||
PATHINFO_FILENAME
|
PATHINFO_FILENAME
|
||||||
).'.mp3',
|
).'.mp3',
|
||||||
ENT_COMPAT,
|
ENT_COMPAT,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user