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 @@
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
{$item->items[0]->music->title}
- +