1
0
mirror of https://github.com/RSS-Bridge/rss-bridge.git synced 2025-07-31 13:50:23 +02:00

[NordbayernBridge] Exclude slideshows when handling articles (#2117)

This commit is contained in:
Christian Schabesberger
2021-05-19 10:43:10 +02:00
committed by GitHub
parent e8d241e8c9
commit 28aaf59007

View File

@@ -64,6 +64,13 @@ class NordbayernBridge extends BridgeAbstract {
$item = array();
$article = getSimpleHTMLDOM($link);
$content = $article->find('div[class*=article-content]', 0);
if(is_null($content)) {
// If content is null its most likely a slideshow.
// we do not support slideshows right now as I (theScrabi)
// think there is to little informational value in these
// to actually add support to them.
return;
}
$item['uri'] = $link;
$item['title'] = $article->find('h1', 0)->innertext;
$item['content'] = '';