[DarkReading] Hide dummy articles
This commit is contained in:
parent
366d2d66b3
commit
00dd81a8aa
1 changed files with 2 additions and 0 deletions
|
@ -53,6 +53,8 @@ class DarkReadingBridge extends FeedExpander {
|
||||||
|
|
||||||
protected function parseItem($newsItem){
|
protected function parseItem($newsItem){
|
||||||
$item = parent::parseItem($newsItem);
|
$item = parent::parseItem($newsItem);
|
||||||
|
if (empty($item['content']))
|
||||||
|
return null; //ignore dummy articles
|
||||||
$article = getSimpleHTMLDOMCached($item['uri'])
|
$article = getSimpleHTMLDOMCached($item['uri'])
|
||||||
or returnServerError('Could not request Dark Reading: ' . $item['uri']);
|
or returnServerError('Could not request Dark Reading: ' . $item['uri']);
|
||||||
$item['content'] = $this->extractArticleContent($article);
|
$item['content'] = $this->extractArticleContent($article);
|
||||||
|
|
Loading…
Reference in a new issue