Skip to content

Commit

Permalink
fix CarThrottleBridge (RSS-Bridge#4442)
Browse files Browse the repository at this point in the history
  • Loading branch information
t0stiman authored Feb 5, 2025
1 parent 549bed6 commit 4e678c9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions bridges/CarThrottleBridge.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ private function getArticles($category)
foreach ($categoryPage->find('div.cmg-card') as $post) {
$item = [];

$titleElement = $post->find('div.title a')[0];
$titleElement = $post->find('a.title')[0];
$post_uri = self::URI . $titleElement->getAttribute('href');

if (!isset($post_uri) || $post_uri == '') {
Expand All @@ -80,8 +80,8 @@ private function getArticles($category)

$item['author'] = $this->parseAuthor($articlePage);

$articleImage = $articlePage->find('div.block-layout-field-image')[0];
$article = $articlePage->find('div.block-layout-body')[1];
$articleImage = $articlePage->find('figure')[0];
$article = $articlePage->find('div.first-column div.body')[0];

//remove ads
foreach ($article->find('aside') as $ad) {
Expand Down

0 comments on commit 4e678c9

Please sign in to comment.