From 59d77d4576b0db4d09e85cb40de60d62749be554 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pred=C3=A4?= <46051820+PredaaA@users.noreply.github.com> Date: Wed, 4 Dec 2024 17:34:35 +0100 Subject: [PATCH] [TikTokBridge] Include author profile picture (#4354) --- bridges/TikTokBridge.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bridges/TikTokBridge.php b/bridges/TikTokBridge.php index 22fdfcef..43a9cb31 100644 --- a/bridges/TikTokBridge.php +++ b/bridges/TikTokBridge.php @@ -29,6 +29,7 @@ class TikTokBridge extends BridgeAbstract $html = getSimpleHTMLDOMCached('https://www.tiktok.com/embed/' . $this->processUsername()); $author = $html->find('span[data-e2e=creator-profile-userInfo-TUXText]', 0)->plaintext ?? self::NAME; + $authorProfilePicture = $html->find('img[data-e2e=creator-profile-userInfo-Avatar]', 0)->src ?? ''; $videos = $html->find('div[data-e2e=common-videoList-VideoContainer]'); @@ -44,7 +45,7 @@ class TikTokBridge extends BridgeAbstract $image = $video->find('video', 0)->poster; $views = $video->find('div[data-e2e=common-Video-Count]', 0)->plaintext; - $enclosures = [$image]; + $enclosures = [$image, $authorProfilePicture]; $item['uri'] = $url; $item['title'] = 'Video';