1
0
mirror of https://github.com/RSS-Bridge/rss-bridge.git synced 2025-08-06 08:37:30 +02:00

[GithubSearchBridge] Add programming language (#3074)

This commit is contained in:
Corentin Garcia
2022-10-01 08:42:50 +02:00
committed by GitHub
parent c4d95558af
commit 7c96334e3b

View File

@@ -58,6 +58,14 @@ class GithubSearchBridge extends BridgeAbstract
} }
} }
// Programming language
if (count($element->find('span[itemprop=programmingLanguage]')) != 0) {
$language = $element->find('span[itemprop=programmingLanguage]', 0)->innertext;
$content = $content . '<br />';
$content = $content . 'Language: ' . $language;
}
$item['categories'] = $tags_array; $item['categories'] = $tags_array;
$item['content'] = $content; $item['content'] = $content;
$date = $element->find('relative-time', 0)->datetime; $date = $element->find('relative-time', 0)->datetime;