forked from blallo/rss-bridge
Return entire chapter name as item title
This commit is contained in:
parent
0e1b84263e
commit
170818a625
1 changed files with 5 additions and 5 deletions
|
@ -8,7 +8,7 @@ class MangareaderBridge extends BridgeAbstract{
|
|||
$this->name = "Mangareader Bridge";
|
||||
$this->uri = "http://www.mangareader.net";
|
||||
$this->description = "Returns the latest updates. Set limits to -1 to disable the limit.";
|
||||
$this->update = "2016-01-16";
|
||||
$this->update = "2016-01-20";
|
||||
|
||||
$this->parameters["Get site updates"] = '[]';
|
||||
$this->parameters["Get manga updates"] = '
|
||||
|
@ -103,10 +103,10 @@ class MangareaderBridge extends BridgeAbstract{
|
|||
|
||||
foreach ($chapters as $chapter){
|
||||
$item = new \Item();
|
||||
$item->title = $xpath->query("td[1]/a", $chapter)->item(0)->nodeValue; // first column contains anchor with the name
|
||||
$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->date = $xpath->query("td[2]", $chapter)->item(0)->nodeValue; // second column provides the release date
|
||||
$item->title = $xpath->query("td[1]", $chapter)->item(0)->nodeValue;
|
||||
$item->uri = 'http://www.mangareader.net' . $xpath->query("td[1]/a", $chapter)->item(0)->getAttribute('href');
|
||||
$item->description = substr($xpath->query("td[1]", $chapter)->item(0)->nodeValue, strrpos($item->title, ": ") + 2);
|
||||
$item->date = $xpath->query("td[2]", $chapter)->item(0)->nodeValue;
|
||||
$item->content = $item->description . "<br/><time datetime=\"" . $item->date . "\">" . $item->date . "</time>";
|
||||
$this->items[] = $item;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue