mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-01-29 03:47:42 +01:00
[GithubTrendingBridge] Fix items (#3381)
This commit is contained in:
parent
88f646cf12
commit
8fd677f4ae
@ -603,10 +603,10 @@ class GithubTrendingBridge extends BridgeAbstract
|
||||
$item = [];
|
||||
|
||||
// URI
|
||||
$item['uri'] = self::URI_ITEM . $element->find('h1 a', 0)->href;
|
||||
$item['uri'] = self::URI_ITEM . $element->find('h2 a', 0)->href;
|
||||
|
||||
// Title
|
||||
$item['title'] = str_replace(' ', '', trim(strip_tags($element->find('h1 a', 0)->plaintext)));
|
||||
$item['title'] = str_replace(' ', '', trim(strip_tags($element->find('h2 a', 0)->plaintext)));
|
||||
|
||||
// Description
|
||||
$description = $element->find('p', 0);
|
||||
|
Loading…
x
Reference in New Issue
Block a user