1
0
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:
Joseph 2023-05-10 20:14:21 +00:00 committed by GitHub
parent 88f646cf12
commit 8fd677f4ae
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);