mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-07-21 11:14:56 +02:00
[EconomistBridge] fix: broken bridge
Fixes: Call to a member function find() on boo The new-style articles had their DOM changed.
This commit is contained in:
parent
b57d19b29c
commit
6e0589f9a0
1 changed files with 5 additions and 3 deletions
|
@ -102,10 +102,12 @@ class EconomistBridge extends FeedExpander {
|
|||
$contentNode = 'div.layout-article-body';
|
||||
$imgNode = 'div.article__lead-image';
|
||||
$categoryNode = 'span.article__subheadline';
|
||||
} else {
|
||||
$contentNode = 'div.e4sqmp1';
|
||||
$imgNode = 'figure.e3y6nua0';
|
||||
} elseif ($article->find('article', 0)->getAttribute('data-test-id') === 'NewArticle') {
|
||||
$contentNode = 'section';
|
||||
$imgNode = 'figure.css-12eysrk.e3y6nua0';
|
||||
$categoryNode = 'span.ern1uyf0';
|
||||
} else {
|
||||
// pass
|
||||
}
|
||||
|
||||
$item['content'] = $this->cleanContent($article, $contentNode);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue