1
0
Fork 0
forked from blallo/rss-bridge

Remove content duplication

This commit is contained in:
logmanoriginal 2016-01-22 19:56:07 +01:00
parent d1fe87651d
commit e2043574f2

View file

@ -8,7 +8,7 @@ class MangareaderBridge extends BridgeAbstract{
$this->name = "Mangareader Bridge"; $this->name = "Mangareader Bridge";
$this->uri = "http://www.mangareader.net"; $this->uri = "http://www.mangareader.net";
$this->description = "Returns the latest updates, popular mangas or manga updates (new chapters)"; $this->description = "Returns the latest updates, popular mangas or manga updates (new chapters)";
$this->update = "2016-01-21"; $this->update = "2016-01-22";
$this->parameters["Get latest updates"] = '[]'; $this->parameters["Get latest updates"] = '[]';
$this->parameters["Get popular mangas"] = $this->parameters["Get popular mangas"] =
@ -310,9 +310,7 @@ class MangareaderBridge extends BridgeAbstract{
$item = new \Item(); $item = new \Item();
$item->title = htmlspecialchars($xpath->query("td[1]", $chapter)->item(0)->nodeValue); $item->title = htmlspecialchars($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->uri = 'http://www.mangareader.net' . $xpath->query("td[1]/a", $chapter)->item(0)->getAttribute('href');
$item->description = htmlspecialchars(substr($xpath->query("td[1]", $chapter)->item(0)->nodeValue, strrpos($item->title, ": ") + 2)); $item->timestamp = strtotime($xpath->query("td[2]", $chapter)->item(0)->nodeValue);
$item->date = $xpath->query("td[2]", $chapter)->item(0)->nodeValue;
$item->content = $item->description . "<br/><time datetime=\"" . $item->date . "\">" . $item->date . "</time>";
array_unshift($this->items, $item); array_unshift($this->items, $item);
} }
} }