diff --git a/app/Controllers/ProxyController.php b/app/Controllers/ProxyController.php index 40d6cdc..a17e385 100644 --- a/app/Controllers/ProxyController.php +++ b/app/Controllers/ProxyController.php @@ -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 { diff --git a/components/feed.latte b/components/feed.latte index 1c5a4ee..d1ed201 100644 --- a/components/feed.latte +++ b/components/feed.latte @@ -6,7 +6,7 @@
diff --git a/composer.json b/composer.json index 337e02f..48358ee 100644 --- a/composer.json +++ b/composer.json @@ -1,7 +1,7 @@ { "name": "pablouser1/proxitok", "description": "An alternative frontend for TikTok", - "version": "1.4.1.1", + "version": "1.4.1.2", "license": "AGPL-3.0-or-later", "type": "project", "homepage": "https://github.com/pablouser1/ProxiTok", diff --git a/views/video.latte b/views/video.latte index 6e65f09..f9cd64a 100644 --- a/views/video.latte +++ b/views/video.latte @@ -3,20 +3,20 @@ {block content}
-
-

Video by {$item->info->detail->user->uniqueId}

+

Video by {$item->info->detail->user->uniqueId}

{$item->items[0]->desc}

Played {number($item->info->detail->stats->playCount)} times

Shared {number($item->info->detail->stats->shareCount)} times / {number($item->info->detail->stats->commentCount)} comments


- Download video + Download video

{$item->items[0]->music->title}

- +