mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-08-03 01:25:21 +02:00
un bridge The Oatmeal qui marche ... principalement pour les comics locaux (et pas pour explodingkittens)
This commit is contained in:
parent
9712d052b4
commit
94ffb22fb0
2 changed files with 33 additions and 10 deletions
|
@ -16,7 +16,7 @@ abstract class RssExpander extends HttpCachingBridgeAbstract{
|
|||
if (empty($param['url'])) {
|
||||
$this->returnError('There is no $param[\'url\'] for this RSS expander', 404);
|
||||
}
|
||||
// $this->message("Loading from ".$param['url']);
|
||||
// $this->message("Loading from ".$param['url']);
|
||||
// Notice WE DO NOT use cache here on purpose : we want a fresh view of the RSS stream each time
|
||||
$rssContent = simplexml_load_file($param['url']) or $this->returnError('Could not request '.$param['url'], 404);
|
||||
// $this->message("loaded RSS from ".$param['url']);
|
||||
|
@ -25,7 +25,7 @@ abstract class RssExpander extends HttpCachingBridgeAbstract{
|
|||
$this->collect_RSS_2_0_data($rssContent);
|
||||
}
|
||||
|
||||
private function collect_RSS_2_0_data($rssContent) {
|
||||
protected function collect_RSS_2_0_data($rssContent) {
|
||||
$rssContent = $rssContent->channel[0];
|
||||
// $this->message("RSS content is ===========\n".var_export($rssContent, true)."===========");
|
||||
$this->load_RSS_2_0_feed_data($rssContent);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue