mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-08-03 09:35:57 +02:00
fix: php errors (#3013)
* fix: php error in tiktok bridge * fix: notice in craigslist * fix: php notice in wordpress bridge * feat: improve ux in telegram bridge
This commit is contained in:
parent
8033a5f461
commit
0dab51e26f
4 changed files with 16 additions and 13 deletions
|
@ -89,9 +89,11 @@ class CraigslistBridge extends BridgeAbstract
|
|||
$item['title'] = $heading->plaintext;
|
||||
$item['timestamp'] = $post->find('.result-date', 0)->datetime;
|
||||
$item['uid'] = $heading->id;
|
||||
$item['content'] = $post->find('.result-price', 0)->plaintext . ' '
|
||||
// Find the location (local and nearby results if searchNearby=1)
|
||||
. $post->find('.result-hood, span.nearby', 0)->plaintext;
|
||||
|
||||
$price = $post->find('.result-price', 0)->plaintext ?? '';
|
||||
// Find the location (local and nearby results if searchNearby=1)
|
||||
$nearby = $post->find('.result-hood, span.nearby', 0)->plaintext ?? '';
|
||||
$item['content'] = sprintf('%s %s', $price, $nearby);
|
||||
|
||||
$images = $post->find('.result-image[data-ids]', 0);
|
||||
if (!is_null($images)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue