diff --git a/composer.json b/composer.json index 8a28896..a7202ac 100644 --- a/composer.json +++ b/composer.json @@ -1,7 +1,7 @@ { "name": "pablouser1/proxitok", "description": "An alternative frontend for TikTok", - "version": "2.4.7.0", + "version": "2.4.8.0", "license": "AGPL-3.0-or-later", "type": "project", "authors": [ diff --git a/composer.lock b/composer.lock index 2fffa19..9d71631 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": "97152c7473ad08a262f9db1af867faaa", + "content-hash": "edc1f7ddb80ad13369e0536c32518ece", "packages": [ { "name": "bramus/router", @@ -303,16 +303,16 @@ }, { "name": "pablouser1/tikscraper", - "version": "v2.3.6.1", + "version": "v2.3.6.2", "source": { "type": "git", "url": "https://github.com/pablouser1/TikScraperPHP.git", - "reference": "7e296d1ff871b81ed5f2bc9756308272148cd96f" + "reference": "10394fb5fb5213d05fe0eb29f7582423fc15d08a" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/pablouser1/TikScraperPHP/zipball/7e296d1ff871b81ed5f2bc9756308272148cd96f", - "reference": "7e296d1ff871b81ed5f2bc9756308272148cd96f", + "url": "https://api.github.com/repos/pablouser1/TikScraperPHP/zipball/10394fb5fb5213d05fe0eb29f7582423fc15d08a", + "reference": "10394fb5fb5213d05fe0eb29f7582423fc15d08a", "shasum": "" }, "require": { @@ -346,9 +346,9 @@ "description": "Get data from TikTok API", "support": { "issues": "https://github.com/pablouser1/TikScraperPHP/issues", - "source": "https://github.com/pablouser1/TikScraperPHP/tree/v2.3.6.1" + "source": "https://github.com/pablouser1/TikScraperPHP/tree/v2.3.6.2" }, - "time": "2023-03-29T09:18:40+00:00" + "time": "2023-04-01T13:46:50+00:00" }, { "name": "php-webdriver/webdriver", @@ -614,16 +614,16 @@ }, { "name": "symfony/process", - "version": "v5.4.21", + "version": "v5.4.22", "source": { "type": "git", "url": "https://github.com/symfony/process.git", - "reference": "d4ce417ebcb0b7d090b4c178ed6d3accc518e8bd" + "reference": "4b850da0cc3a2a9181c1ed407adbca4733dc839b" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/process/zipball/d4ce417ebcb0b7d090b4c178ed6d3accc518e8bd", - "reference": "d4ce417ebcb0b7d090b4c178ed6d3accc518e8bd", + "url": "https://api.github.com/repos/symfony/process/zipball/4b850da0cc3a2a9181c1ed407adbca4733dc839b", + "reference": "4b850da0cc3a2a9181c1ed407adbca4733dc839b", "shasum": "" }, "require": { @@ -656,7 +656,7 @@ "description": "Executes commands in sub-processes", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/process/tree/v5.4.21" + "source": "https://github.com/symfony/process/tree/v5.4.22" }, "funding": [ { @@ -672,7 +672,7 @@ "type": "tidelift" } ], - "time": "2023-02-21T19:46:44+00:00" + "time": "2023-03-06T21:29:33+00:00" } ], "packages-dev": [], diff --git a/templates/components/themes/common/content.latte b/templates/components/themes/common/content.latte new file mode 100644 index 0000000..7ee2cdb --- /dev/null +++ b/templates/components/themes/common/content.latte @@ -0,0 +1,19 @@ +{if !isset($item->imagePost)} + +{else} +
+ {foreach $item->imagePost->images as $image} + {if $isBig} +
+ {else} +
+ {/if} +
+ +
+
+ {/foreach} +
+{/if} diff --git a/templates/components/themes/default.latte b/templates/components/themes/default.latte index a9b0a1b..d23f9ee 100644 --- a/templates/components/themes/default.latte +++ b/templates/components/themes/default.latte @@ -18,11 +18,11 @@

{include './common/tags.latte', challenges: $item->challenges}

{/if}

{$item->desc}

+

Song: {$item->music->title}

+ {include './common/stats.latte', playCount: $item->stats->playCount, diggCount: $item->stats->diggCount, commentCount: $item->stats->commentCount, shareCount: $item->stats->shareCount}
- + {include './common/content.latte', item: $item, isAutoplay: false, isBig: false}

Download video

{include './common/download.latte', playAddr: $item->video->playAddr, id: $item->id, uniqueId: $item->author->uniqueId} diff --git a/templates/views/video.latte b/templates/views/video.latte index 0c7bab0..affb0f5 100644 --- a/templates/views/video.latte +++ b/templates/views/video.latte @@ -9,11 +9,9 @@ {/if} {block content} -
+
- + {include '../components/themes/common/content.latte', item: $item, isAutoplay: true, isBig: true}
@@ -36,6 +34,8 @@ {/if}

{$item->desc}

+

Song: {$item->music->title}

+ {include '../components/themes/common/stats.latte', playCount: $item->stats->playCount, diggCount: $item->stats->diggCount, commentCount: $item->stats->commentCount, shareCount: $item->stats->shareCount}
{include '../components/themes/common/share.latte', uniqueId: $info->detail->uniqueId, id: $item->id}