mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-04-09 16:38:50 +00:00
[HackerNewsUserThreadsBridge] Repair broken bridge (#2344)
This commit is contained in:
parent
67e33186ce
commit
ec55e99934
@ -30,7 +30,7 @@ class HackerNewsUserThreadsBridge extends BridgeAbstract {
|
|||||||
$item['uri'] = 'https://news.ycombinator.com/item?id=' . $id;
|
$item['uri'] = 'https://news.ycombinator.com/item?id=' . $id;
|
||||||
|
|
||||||
$author = $element->find('span[class*="comhead"]', 0)->find('a[class="hnuser"]', 0)->innertext;
|
$author = $element->find('span[class*="comhead"]', 0)->find('a[class="hnuser"]', 0)->innertext;
|
||||||
$newstory = $element->find('span[class*="comhead"]', 0)->find('span[class="storyon"]', 0);
|
$newstory = $element->find('span[class*="comhead"]', 0)->find('span[class="onstory"]', 0);
|
||||||
if (count($newstory->find('a')) > 0) {
|
if (count($newstory->find('a')) > 0) {
|
||||||
$story = $newstory->find('a', 0)->innertext;
|
$story = $newstory->find('a', 0)->innertext;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user