diff options
author | 2025-02-05 18:41:42 +0100 | |
---|---|---|
committer | 2025-02-05 18:41:42 +0100 | |
commit | 4e678c955fed511667160776b3f27e75178b4eaf (patch) | |
tree | 58a9d39fed07b2c4a194f10cbfae25d39e20f59f | |
parent | 549bed64d2b2ed37e7d6b888d83795ec1ee31603 (diff) | |
download | rss-bridge-4e678c955fed511667160776b3f27e75178b4eaf.tar.gz rss-bridge-4e678c955fed511667160776b3f27e75178b4eaf.tar.zst rss-bridge-4e678c955fed511667160776b3f27e75178b4eaf.zip |
fix CarThrottleBridge (#4442)
-rw-r--r-- | bridges/CarThrottleBridge.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/bridges/CarThrottleBridge.php b/bridges/CarThrottleBridge.php index 2b8ca2b2..8475a414 100644 --- a/bridges/CarThrottleBridge.php +++ b/bridges/CarThrottleBridge.php @@ -66,7 +66,7 @@ class CarThrottleBridge extends BridgeAbstract 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 == '') { @@ -80,8 +80,8 @@ class CarThrottleBridge extends BridgeAbstract $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) { |