diff --git a/bridges/AcrimedBridge.php b/bridges/AcrimedBridge.php index 39ba87b..0042fc8 100644 --- a/bridges/AcrimedBridge.php +++ b/bridges/AcrimedBridge.php @@ -11,7 +11,7 @@ class AcrimedBridge extends FeedExpander { } protected function parseItem($newsItem){ - $item = $this->parseRSS_2_0_Item($newsItem); + $item = parent::parseItem($newsItem); $hs = new HTMLSanitizer(); $articlePage = $this->getSimpleHTMLDOM($newsItem->link); diff --git a/bridges/CADBridge.php b/bridges/CADBridge.php index 595160e..b4e68d4 100644 --- a/bridges/CADBridge.php +++ b/bridges/CADBridge.php @@ -10,7 +10,7 @@ class CADBridge extends FeedExpander { } protected function parseItem($newsItem){ - $item = $this->parseRSS_2_0_Item($newsItem); + $item = parent::parseItem($newsItem); $item['content'] = $this->CADExtractContent($item['uri']); return $item; } diff --git a/bridges/CommonDreamsBridge.php b/bridges/CommonDreamsBridge.php index 224b309..3ca0dde 100644 --- a/bridges/CommonDreamsBridge.php +++ b/bridges/CommonDreamsBridge.php @@ -11,7 +11,7 @@ class CommonDreamsBridge extends FeedExpander { } protected function parseItem($newsItem){ - $item = $this->parseRSS_2_0_Item($newsItem); + $item = parent::parseItem($newsItem); $item['content'] = $this->CommonDreamsExtractContent($item['uri']); return $item; } diff --git a/bridges/DauphineLibereBridge.php b/bridges/DauphineLibereBridge.php index 9e9aacd..be768ae 100644 --- a/bridges/DauphineLibereBridge.php +++ b/bridges/DauphineLibereBridge.php @@ -41,7 +41,7 @@ class DauphineLibereBridge extends FeedExpander { } protected function parseItem($newsItem){ - $item = $this->parseRSS_2_0_Item($newsItem); + $item = parent::parseItem($newsItem); $item['content'] = $this->ExtractContent($item['uri']); return $item; } diff --git a/bridges/DeveloppezDotComBridge.php b/bridges/DeveloppezDotComBridge.php index 5cbd576..4804935 100644 --- a/bridges/DeveloppezDotComBridge.php +++ b/bridges/DeveloppezDotComBridge.php @@ -11,7 +11,7 @@ class DeveloppezDotComBridge extends FeedExpander { } protected function parseItem($newsItem){ - $item = $this->parseRSS_2_0_Item($newsItem); + $item = parent::parseItem($newsItem); $item['content'] = $this->DeveloppezDotComExtractContent($item['uri']); return $item; } diff --git a/bridges/FreenewsBridge.php b/bridges/FreenewsBridge.php index 1934e0b..ab4d3d8 100644 --- a/bridges/FreenewsBridge.php +++ b/bridges/FreenewsBridge.php @@ -11,8 +11,8 @@ class FreenewsBridge extends FeedExpander { } protected function parseItem($newsItem) { - $item = $this->parseRSS_2_0_Item($newsItem); - + $item = parent::parseItem($newsItem); + $articlePage = $this->getSimpleHTMLDOMCached($item['uri']); $content = $articlePage->find('.post-container', 0); $item['content'] = $content->innertext; diff --git a/bridges/FuturaSciencesBridge.php b/bridges/FuturaSciencesBridge.php index 73f1b53..b0f09f0 100644 --- a/bridges/FuturaSciencesBridge.php +++ b/bridges/FuturaSciencesBridge.php @@ -84,9 +84,9 @@ class FuturaSciencesBridge extends FeedExpander { } protected function parseItem($newsItem){ - $item = $this->parseRSS_2_0_Item($newsItem); + $item = parent::parseItem($newsItem); $item['uri'] = str_replace('#xtor=RSS-8', '', $item['uri']); - $article = $this->getSimpleHTMLDOMCached($item['uri']) + $article = $this->getSimpleHTMLDOMCached($item['uri']) or $this->returnServerError('Could not request Futura-Sciences: ' . $item['uri']); $item['content'] = $this->ExtractArticleContent($article); $item['author'] = empty($this->ExtractAuthor($article)) ? $item['author'] : $this->ExtractAuthor($article); diff --git a/bridges/LeJournalDuGeekBridge.php b/bridges/LeJournalDuGeekBridge.php index 95bd960..a82d815 100644 --- a/bridges/LeJournalDuGeekBridge.php +++ b/bridges/LeJournalDuGeekBridge.php @@ -11,7 +11,7 @@ class LeJournalDuGeekBridge extends FeedExpander { } protected function parseItem($newsItem){ - $item = $this->parseRSS_2_0_Item($newsItem); + $item = parent::parseItem($newsItem); $item['content'] = $this->LeJournalDuGeekExtractContent($item['uri']); return $item; } diff --git a/bridges/LeMondeInformatiqueBridge.php b/bridges/LeMondeInformatiqueBridge.php index f609517..889710f 100644 --- a/bridges/LeMondeInformatiqueBridge.php +++ b/bridges/LeMondeInformatiqueBridge.php @@ -11,8 +11,8 @@ class LeMondeInformatiqueBridge extends FeedExpander { } protected function parseItem($newsItem){ - $item = $this->parseRSS_1_0_Item($newsItem); - $article_html = $this->getSimpleHTMLDOMCached($item['uri']) + $item = parent::parseItem($newsItem); + $article_html = $this->getSimpleHTMLDOMCached($item['uri']) or $this->returnServerError('Could not request LeMondeInformatique: ' . $item['uri']); $item['content'] = $this->CleanArticle($article_html->find('div#article', 0)->innertext); $item['title'] = $article_html->find('h1.cleanprint-title', 0)->plaintext; diff --git a/bridges/LichessBridge.php b/bridges/LichessBridge.php index 6f64539..b1498d2 100644 --- a/bridges/LichessBridge.php +++ b/bridges/LichessBridge.php @@ -11,7 +11,7 @@ class LichessBridge extends FeedExpander { } protected function parseItem($newsItem){ - $item = $this->parseATOMItem($newsItem); + $item = parent::parseItem($newsItem); $item['content'] = $this->retrieve_lichess_post($item['uri']); return $item; } diff --git a/bridges/NextInpactBridge.php b/bridges/NextInpactBridge.php index 3152b09..9196cdd 100644 --- a/bridges/NextInpactBridge.php +++ b/bridges/NextInpactBridge.php @@ -11,7 +11,7 @@ class NextInpactBridge extends FeedExpander { } protected function parseItem($newsItem){ - $item = $this->parseRSS_2_0_Item($newsItem); + $item = parent::parseItem($newsItem); $item['content'] = $this->ExtractContent($item['uri']); return $item; } diff --git a/bridges/NextgovBridge.php b/bridges/NextgovBridge.php index d706119..14f1d53 100644 --- a/bridges/NextgovBridge.php +++ b/bridges/NextgovBridge.php @@ -30,14 +30,14 @@ class NextgovBridge extends FeedExpander { } protected function parseItem($newsItem){ - $item = $this->parseRSS_2_0_Item($newsItem); + $item = parent::parseItem($newsItem); $item['content'] = ''; $namespaces = $newsItem->getNamespaces(true); if(isset($namespaces['media'])){ $media = $newsItem->children($namespaces['media']); - if(isset($media->content)){ + if(isset($media->content)){ $attributes = $media->content->attributes(); $item['content'] = ''; } @@ -56,7 +56,7 @@ class NextgovBridge extends FeedExpander { } private function ExtractContent($url){ - $article = $this->getSimpleHTMLDOMCached($url) + $article = $this->getSimpleHTMLDOMCached($url) or $this->returnServerError('Could not request Nextgov: ' . $url); $contents = $article->find('div.wysiwyg', 0)->innertext; diff --git a/bridges/NiceMatinBridge.php b/bridges/NiceMatinBridge.php index 4e83cff..5f5f94a 100644 --- a/bridges/NiceMatinBridge.php +++ b/bridges/NiceMatinBridge.php @@ -11,7 +11,7 @@ class NiceMatinBridge extends FeedExpander { } protected function parseItem($newsItem){ - $item = $this->parseRSS_2_0_Item($newsItem); + $item = parent::parseItem($newsItem); $item['content'] = $this->NiceMatinExtractContent($item['uri']); return $item; } diff --git a/bridges/NumeramaBridge.php b/bridges/NumeramaBridge.php index d018fbd..34296b5 100644 --- a/bridges/NumeramaBridge.php +++ b/bridges/NumeramaBridge.php @@ -11,7 +11,7 @@ class NumeramaBridge extends FeedExpander { } protected function parseItem($newsItem){ - $item = $this->parseRSS_2_0_Item($newsItem); + $item = parent::parseItem($newsItem); $item['content'] = $this->ExtractContent($item['uri']); return $item; } diff --git a/bridges/TheOatMealBridge.php b/bridges/TheOatMealBridge.php index 3c3d216..24e9763 100644 --- a/bridges/TheOatMealBridge.php +++ b/bridges/TheOatMealBridge.php @@ -11,7 +11,7 @@ class TheOatmealBridge extends FeedExpander{ } protected function parseItem($newsItem) { - $item = $this->parseRSS_1_0_Item($newsItem); + $item = parent::parseItem($newsItem); $articlePage = $this->getSimpleHTMLDOMCached($item['uri']); $content = $articlePage->find('#comic', 0);