Skip to content

Commit

Permalink
[TikTokBridge] Include author profile picture (RSS-Bridge#4354)
Browse files Browse the repository at this point in the history
  • Loading branch information
PredaaA authored Dec 4, 2024
1 parent d956471 commit 59d77d4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bridges/TikTokBridge.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ public function collectData()
$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]');

Expand All @@ -44,7 +45,7 @@ public function collectData()
$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';
Expand Down

0 comments on commit 59d77d4

Please sign in to comment.