mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2024-11-23 10:05:32 +03:00
[NordbayernBridge] Exclude slideshows when handling articles (#2117)
This commit is contained in:
parent
e8d241e8c9
commit
28aaf59007
1 changed files with 7 additions and 0 deletions
|
@ -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'] = '';
|
||||
|
|
Loading…
Reference in a new issue