mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-08-05 18:44:36 +02:00
[bridges] Change all bridges to use BridgeAbstract with getSimpleHTMLDOMCached
This commit is contained in:
parent
9f2dd48684
commit
2eec89ab27
21 changed files with 27 additions and 27 deletions
|
@ -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'])){
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue