No items sent by TikTok!
{/if} diff --git a/components/themes/common/controls.latte b/components/themes/common/controls.latte index 2aa4489..bb0aad5 100644 --- a/components/themes/common/controls.latte +++ b/components/themes/common/controls.latte @@ -1,8 +1,8 @@ - diff --git a/composer.json b/composer.json index 1c34e99..0a30295 100644 --- a/composer.json +++ b/composer.json @@ -1,7 +1,7 @@ { "name": "pablouser1/proxitok", "description": "An alternative frontend for TikTok", - "version": "2.2.2.0", + "version": "2.3.0.0", "license": "AGPL-3.0-or-later", "type": "project", "authors": [ @@ -24,7 +24,7 @@ "latte/latte": "^2.11", "bramus/router": "^1.6", "josegonzalez/dotenv": "dev-master", - "pablouser1/tikscraper": "^1.3" + "pablouser1/tikscraper": "^2.0" }, "autoload": { "psr-4": { diff --git a/composer.lock b/composer.lock index 1e7a272..f0ec56b 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "f1c0945357108862633ea87a1f6bbdd8", + "content-hash": "e0e24f4588d6e34423fa8931ae8ae9a3", "packages": [ { "name": "bramus/router", @@ -263,16 +263,16 @@ }, { "name": "pablouser1/tikscraper", - "version": "v1.3.5.2", + "version": "v2.0.1.3", "source": { "type": "git", "url": "https://github.com/pablouser1/TikScraperPHP.git", - "reference": "cb2580e9868cd4f77f3ab93987786fbd57e4efaf" + "reference": "45812af395b376dff6835af192827f34ba7a4cf9" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/pablouser1/TikScraperPHP/zipball/cb2580e9868cd4f77f3ab93987786fbd57e4efaf", - "reference": "cb2580e9868cd4f77f3ab93987786fbd57e4efaf", + "url": "https://api.github.com/repos/pablouser1/TikScraperPHP/zipball/45812af395b376dff6835af192827f34ba7a4cf9", + "reference": "45812af395b376dff6835af192827f34ba7a4cf9", "shasum": "" }, "require": { @@ -298,9 +298,9 @@ "description": "Get data from TikTok API", "support": { "issues": "https://github.com/pablouser1/TikScraperPHP/issues", - "source": "https://github.com/pablouser1/TikScraperPHP/tree/v1.3.5.2" + "source": "https://github.com/pablouser1/TikScraperPHP/tree/v2.0.1.3" }, - "time": "2022-05-22T09:33:26+00:00" + "time": "2022-05-24T12:08:22+00:00" }, { "name": "php-webdriver/webdriver", diff --git a/views/discover.latte b/views/discover.latte index 5780744..93b61eb 100644 --- a/views/discover.latte +++ b/views/discover.latte @@ -5,7 +5,7 @@ {/block} {block content} - {foreach $feed->items as $type => $items} + {foreach $data->feed->items as $type => $items}{$type|firstUpper}
{$feed->info->detail->title}
-{$feed->info->detail->desc}
-Videos: {number($feed->info->stats->videoCount)}
+{$data->info->detail->title}
+{$data->info->detail->desc}
+Videos: {number($data->info->stats->videoCount)}
{/block} {block content} diff --git a/views/tag.latte b/views/tag.latte index f2f70b4..82853b2 100644 --- a/views/tag.latte +++ b/views/tag.latte @@ -1,14 +1,14 @@ {layout '../layouts/default.latte'} {block header} - {if $feed->info->detail->profileThumb !== ''} + {if $data->info->detail->profileThumb !== ''} {/if} -{$feed->info->detail->title}
+{$data->info->detail->title}
{include '../components/rss.latte'}
-Videos: {number($feed->info->stats->videoCount)} / Views: {number($feed->info->stats->viewCount)}
+Videos: {number($data->info->stats->videoCount)} / Views: {number($data->info->stats->viewCount)}
{/block} {block content} diff --git a/views/user.latte b/views/user.latte index 91d45b8..2eb68b7 100644 --- a/views/user.latte +++ b/views/user.latte @@ -2,13 +2,13 @@ {block header} -{$feed->info->detail->uniqueId}
+{$data->info->detail->uniqueId}
{include '../components/rss.latte'}
-{$feed->info->detail->signature}
-Following: {number($feed->info->stats->followingCount)} / Followers: {number($feed->info->stats->followerCount)}
-Hearts: {number($feed->info->stats->heartCount)} / Videos: {$feed->info->stats->videoCount}
+{$data->info->detail->signature}
+Following: {number($data->info->stats->followingCount)} / Followers: {number($data->info->stats->followerCount)}
+Hearts: {number($data->info->stats->heartCount)} / Videos: {$data->info->stats->videoCount}
{/block} {block content}