Merge pull request #239 from Riduidel/TheOatMeal_v_2.0
Fix pour TheOatMeal qui a changé l'organisation des pages
This commit is contained in:
commit
3bf8e98e3c
1 changed files with 2 additions and 2 deletions
|
@ -41,7 +41,7 @@ class TheOatmealBridge extends RssExpander{
|
||||||
$item = new Item();
|
$item = new Item();
|
||||||
$item->title = trim($newsItem->title);
|
$item->title = trim($newsItem->title);
|
||||||
$this->message("browsing Oatmeal item ".var_export($newsItem, true));
|
$this->message("browsing Oatmeal item ".var_export($newsItem, true));
|
||||||
$item->uri=$newsItem->attributes($namespaces['rdf'])->about;
|
$item->uri=(string) $newsItem->attributes($namespaces['rdf'])->about;
|
||||||
// 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));
|
||||||
|
@ -53,7 +53,7 @@ class TheOatmealBridge extends RssExpander{
|
||||||
$item->content = $content->innertext;
|
$item->content = $content->innertext;
|
||||||
|
|
||||||
$this->message("dc content is ".var_export($dc, true));
|
$this->message("dc content is ".var_export($dc, true));
|
||||||
$item->name = $dc->creator;
|
$item->name = (string) $dc->creator;
|
||||||
$item->timestamp = DateTime::createFromFormat(DateTime::ISO8601, $dc->date)->getTimestamp();
|
$item->timestamp = DateTime::createFromFormat(DateTime::ISO8601, $dc->date)->getTimestamp();
|
||||||
$this->message("writtem by ".$item->name." on ".$item->timestamp);
|
$this->message("writtem by ".$item->name." on ".$item->timestamp);
|
||||||
return $item;
|
return $item;
|
||||||
|
|
Loading…
Reference in a new issue