From a7b3519c3536c6f02df9cfabeab724b061e736b9 Mon Sep 17 00:00:00 2001 From: logmanoriginal Date: Sun, 28 Aug 2016 19:38:34 +0200 Subject: [PATCH] [bridges] Fix all calls to get_cached --- bridges/CpasbienBridge.php | 2 +- bridges/FreenewsBridge.php | 2 +- bridges/GawkerBridge.php | 2 +- bridges/Les400CulsBridge.php | 2 +- bridges/TheOatMealBridge.php | 2 +- bridges/WorldOfTanksBridge.php | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/bridges/CpasbienBridge.php b/bridges/CpasbienBridge.php index d41d442..862e58b 100644 --- a/bridges/CpasbienBridge.php +++ b/bridges/CpasbienBridge.php @@ -33,7 +33,7 @@ class CpasbienBridge extends HttpCachingBridgeAbstract{ if ($episode->getAttribute('class')=='ligne0' || $episode->getAttribute('class')=='ligne1') { - $htmlepisode=str_get_html($this->get_cached($episode->find('a', 0)->getAttribute('href'))); + $htmlepisode=$this->get_cached($episode->find('a', 0)->getAttribute('href')); $item = array(); $item['author'] = $episode->find('a', 0)->text(); diff --git a/bridges/FreenewsBridge.php b/bridges/FreenewsBridge.php index 727f9f5..0df3c6c 100644 --- a/bridges/FreenewsBridge.php +++ b/bridges/FreenewsBridge.php @@ -25,7 +25,7 @@ class FreenewsBridge extends RssExpander { } // now load that uri from cache $this->debugMessage("now loading page ".$item['uri']); - $articlePage = str_get_html($this->get_cached($item['uri'])); + $articlePage = $this->get_cached($item['uri']); $content = $articlePage->find('.post-container', 0); $item['content'] = $content->innertext; diff --git a/bridges/GawkerBridge.php b/bridges/GawkerBridge.php index 6012220..ac52ae0 100644 --- a/bridges/GawkerBridge.php +++ b/bridges/GawkerBridge.php @@ -45,7 +45,7 @@ class GawkerBridge extends RssExpander{ try { // now load that uri from cache $this->debugMessage("loading page ".$item['uri']); - $articlePage = str_get_html($this->get_cached($item['uri'])); + $articlePage = $this->get_cached($item['uri']); if(is_object($articlePage)) { $content = $articlePage->find('.post-content', 0); HTMLSanitizer::defaultImageSrcTo($content, $this->getURI()); diff --git a/bridges/Les400CulsBridge.php b/bridges/Les400CulsBridge.php index 2dd9883..2925a29 100644 --- a/bridges/Les400CulsBridge.php +++ b/bridges/Les400CulsBridge.php @@ -29,7 +29,7 @@ class Les400CulsBridge extends RssExpander{ } // now load that uri from cache $this->debugMessage("now loading page ".$item['uri']); -// $articlePage = str_get_html($this->get_cached($item['uri'])); +// $articlePage = $this->get_cached($item['uri']); // $content = $articlePage->find('.post-container', 0); $item['content'] = (string) $newsItem->description; diff --git a/bridges/TheOatMealBridge.php b/bridges/TheOatMealBridge.php index c6ab0cd..a152157 100644 --- a/bridges/TheOatMealBridge.php +++ b/bridges/TheOatMealBridge.php @@ -43,7 +43,7 @@ class TheOatmealBridge extends RssExpander{ $item['uri']=(string) $newsItem->attributes($namespaces['rdf'])->about; // now load that uri from cache $this->debugMessage("now loading page ".$item['uri']); - $articlePage = str_get_html($this->get_cached($item['uri'])); + $articlePage = $this->get_cached($item['uri']); $content = $articlePage->find('#comic', 0); if($content==null) { diff --git a/bridges/WorldOfTanksBridge.php b/bridges/WorldOfTanksBridge.php index 98f27bf..e327685 100644 --- a/bridges/WorldOfTanksBridge.php +++ b/bridges/WorldOfTanksBridge.php @@ -58,7 +58,7 @@ class WorldOfTanksBridge extends HttpCachingBridgeAbstract{ $item['uri'] = $this->uri.$infoLink->href; // now load that uri from cache $this->debugMessage("loading page ".$item['uri']); - $articlePage = str_get_html($this->get_cached($item['uri'])); + $articlePage = $this->get_cached($item['uri']); $content = $articlePage->find('.l-content', 0); HTMLSanitizer::defaultImageSrcTo($content, $this->uri); $item['title'] = $content->find('h1', 0)->innertext;