mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-08-05 10:34:55 +02:00
fix(senscritique) (#3750)
This commit is contained in:
parent
49d9dafaec
commit
920d00480d
5 changed files with 28 additions and 35 deletions
|
@ -158,8 +158,8 @@ class VkBridge extends BridgeAbstract
|
|||
$article_author_selector = 'div.article_snippet__author';
|
||||
$article_thumb_selector = 'div.article_snippet__image';
|
||||
}
|
||||
$article_title = $article->find($article_title_selector, 0)->innertext;
|
||||
$article_author = $article->find($article_author_selector, 0)->innertext;
|
||||
$article_title = $article->find($article_title_selector, 0)->innertext ?? '';
|
||||
$article_author = $article->find($article_author_selector, 0)->innertext ?? '';
|
||||
$article_link = $article->getAttribute('href');
|
||||
$article_img_element_style = $article->find($article_thumb_selector, 0)->getAttribute('style');
|
||||
preg_match('/background-image: url\((.*)\)/', $article_img_element_style, $matches);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue