mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2024-11-26 19:36:52 +03:00
[GithubIssueBridge] Fix bridge after DOM changes
This commit is contained in:
parent
ea08445946
commit
ba116d9ab6
1 changed files with 7 additions and 2 deletions
|
@ -192,8 +192,13 @@ class GithubIssueBridge extends BridgeAbstract {
|
|||
ENT_QUOTES,
|
||||
'UTF-8'
|
||||
);
|
||||
$comments = trim($issue->find('.col-5', 0)->plaintext);
|
||||
$item['content'] .= "\n" . 'Comments: ' . ($comments ? $comments : '0');
|
||||
|
||||
$comment_count = 0;
|
||||
if($span = $issue->find('a[aria-label*="comment"] span', 0)) {
|
||||
$comment_count = $span->plaintext;
|
||||
}
|
||||
|
||||
$item['content'] .= "\n" . 'Comments: ' . $comment_count;
|
||||
$item['uri'] = self::URI
|
||||
. $issue->find('.js-navigation-open', 0)->getAttribute('href');
|
||||
$this->items[] = $item;
|
||||
|
|
Loading…
Reference in a new issue