forked from blallo/rss-bridge
[bridges] Fix all calls to get_cached
This commit is contained in:
parent
5f3d28f3a6
commit
a7b3519c35
6 changed files with 6 additions and 6 deletions
|
@ -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();
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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());
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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) {
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue