1
0
Fork 0
forked from blallo/rss-bridge

Move date information into a time tag

This commit is contained in:
logmanoriginal 2016-01-19 21:36:41 +01:00
parent e6f388d6e4
commit 2e4e0077a8

View file

@ -107,7 +107,7 @@ class MangareaderBridge extends BridgeAbstract{
$item->uri = 'http://www.mangareader.net' . $xpath->query("td[1]/a", $chapter)->item(0)->getAttribute('href'); // anchor includes path (with leading '/') $item->uri = 'http://www.mangareader.net' . $xpath->query("td[1]/a", $chapter)->item(0)->getAttribute('href'); // anchor includes path (with leading '/')
$item->description = substr($xpath->query("td[1]", $chapter)->item(0)->nodeValue, strlen($item->title) + 4); // first column provides "<name> : <desccription>", we only want the description $item->description = substr($xpath->query("td[1]", $chapter)->item(0)->nodeValue, strlen($item->title) + 4); // first column provides "<name> : <desccription>", we only want the description
$item->date = $xpath->query("td[2]", $chapter)->item(0)->nodeValue; // second column provides the release date $item->date = $xpath->query("td[2]", $chapter)->item(0)->nodeValue; // second column provides the release date
$item->content = $item->description . "<br/>" . $item->date; $item->content = $item->description . "<br/><time datetime=\"" . $item->date . "\">" . $item->date . "</time>";
$this->items[] = $item; $this->items[] = $item;
} }
} }