mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-02-19 15:45:49 +01:00
[GithubTrendingBridge] Fix items (#3381)
This commit is contained in:
parent
88f646cf12
commit
8fd677f4ae
@ -603,10 +603,10 @@ class GithubTrendingBridge extends BridgeAbstract
|
|||||||
$item = [];
|
$item = [];
|
||||||
|
|
||||||
// URI
|
// URI
|
||||||
$item['uri'] = self::URI_ITEM . $element->find('h1 a', 0)->href;
|
$item['uri'] = self::URI_ITEM . $element->find('h2 a', 0)->href;
|
||||||
|
|
||||||
// Title
|
// 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
|
||||||
$description = $element->find('p', 0);
|
$description = $element->find('p', 0);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user