Fixed /video and set user on video download
This commit is contained in:
parent
19553f8837
commit
dd5964cb97
4 changed files with 9 additions and 9 deletions
|
|
@ -26,8 +26,8 @@ class ProxyController {
|
|||
// Download
|
||||
$downloader = new \Sovit\TikTok\Download();
|
||||
$filename = 'tiktok-video';
|
||||
if (isset($_GET['id'])) {
|
||||
$filename .= '-' . $_GET['id'];
|
||||
if (isset($_GET['id'], $_GET['user'])) {
|
||||
$filename .= '-' . $_GET['user'] . '-' . $_GET['id'];
|
||||
}
|
||||
$downloader->url($url, $filename, 'mp4');
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue