mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-08-29 02:50:31 +02:00
[bridges] Change all bridges to use BridgeAbstract with getSimpleHTMLDOMCached
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
<?php
|
||||
define('WORDPRESS_TYPE_ATOM', 1); // Content is of type ATOM
|
||||
define('WORDPRESS_TYPE_RSS', 2); // Content is of type RSS
|
||||
class WordPressBridge extends HttpCachingBridgeAbstract {
|
||||
class WordPressBridge extends BridgeAbstract {
|
||||
|
||||
public $sitename; // Name of the site
|
||||
|
||||
@@ -82,7 +82,7 @@ class WordPressBridge extends HttpCachingBridgeAbstract {
|
||||
$item['timestamp'] = strtotime($article->find('updated', 0)->innertext);
|
||||
}
|
||||
|
||||
$article_html = $this->get_cached($item['uri']);
|
||||
$article_html = $this->getSimpleHTMLDOMCached($item['uri']);
|
||||
|
||||
// Attempt to find most common content div
|
||||
if(!isset($item['content'])){
|
||||
|
Reference in New Issue
Block a user