Fixed /video and set user on video download

This commit is contained in:
Pablo Ferreiro 2022-02-07 18:40:32 +01:00
parent 19553f8837
commit dd5964cb97
No known key found for this signature in database
GPG key ID: 41FBCE65B779FA24
4 changed files with 9 additions and 9 deletions

View file

@ -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 {