1
0
Fork 0
forked from blallo/rss-bridge

Merge pull request #243 from Riduidel/Les400Culs_2

Les400 culs 2
This commit is contained in:
Mitsu 2016-04-14 08:26:17 +02:00
commit 2c08c92dfe

View file

@ -9,7 +9,7 @@ class Les400Culs extends RssExpander{
$this->maintainer = "unknown"; $this->maintainer = "unknown";
$this->name = "Les 400 Culs"; $this->name = "Les 400 Culs";
$this->uri = "http://sexes.blogs.liberation.fr"; $this->uri = "http://sexes.blogs.liberation.fr";
$this->description = "La planète sexe vue par Agnès Girard via rss-bridge"; $this->description = "La planete sexe vue par Agnes Girard via rss-bridge";
$this->update = "20/02/2014"; $this->update = "20/02/2014";
} }
@ -21,20 +21,20 @@ class Les400Culs extends RssExpander{
protected function parseRSSItem($newsItem) { protected function parseRSSItem($newsItem) {
$item = new Item(); $item = new Item();
$item->title = trim($newsItem->title); $item->title = trim((string) $newsItem->title);
// $this->message("browsing item ".var_export($newsItem, true)); // $this->message("browsing item ".var_export($newsItem, true));
if(empty($newsItem->guid)) { if(empty($newsItem->guid)) {
$item->uri = $newsItem->link; $item->uri = (string) $newsItem->link;
} else { } else {
$item->uri = $newsItem->guid; $item->uri = (string) $newsItem->guid;
} }
// now load that uri from cache // now load that uri from cache
// $this->message("now loading page ".$item->uri); // $this->message("now loading page ".$item->uri);
// $articlePage = str_get_html($this->get_cached($item->uri)); // $articlePage = str_get_html($this->get_cached($item->uri));
// $content = $articlePage->find('.post-container', 0); // $content = $articlePage->find('.post-container', 0);
$item->content = $newsItem->description; $item->content = (string) $newsItem->description;
$item->name = $newsItem->author; $item->name = (string) $newsItem->author;
$item->timestamp = $this->RSS_2_0_time_to_timestamp($newsItem); $item->timestamp = $this->RSS_2_0_time_to_timestamp($newsItem);
return $item; return $item;
} }