mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-08-04 01:55:21 +02:00
Little refactoring to reduce logic on index.php.
Moved RssExpander as a core logic system to lib/Bridge.php Signed-off-by: teromene <teromene@teromene.fr>
This commit is contained in:
parent
80008f01f8
commit
38829e7739
9 changed files with 201 additions and 212 deletions
|
@ -1,7 +1,7 @@
|
|||
<?php
|
||||
require_once 'bridges/RssExpander.php';
|
||||
define("RSS_PREFIX", "http://feeds.gawker.com/");
|
||||
define("RSS_SUFFIX", "/full");
|
||||
|
||||
class Gawker extends RssExpander{
|
||||
|
||||
public function loadMetadatas() {
|
||||
|
@ -34,7 +34,7 @@ class Gawker extends RssExpander{
|
|||
$param['url'] = $this->toURI(strtolower($param['site']));
|
||||
}
|
||||
// $this->message("loading feed from ".$this->getURI());
|
||||
parent::collectData($param);
|
||||
parent::collectExpandableDatas($param, $name);
|
||||
}
|
||||
|
||||
protected function parseRSSItem($newsItem) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue