From e2043574f2b6edda13824e5d868f9d88967fbd04 Mon Sep 17 00:00:00 2001 From: logmanoriginal Date: Fri, 22 Jan 2016 19:56:07 +0100 Subject: [PATCH] Remove content duplication --- bridges/MangareaderBridge.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/bridges/MangareaderBridge.php b/bridges/MangareaderBridge.php index daa640b..3d92682 100644 --- a/bridges/MangareaderBridge.php +++ b/bridges/MangareaderBridge.php @@ -8,7 +8,7 @@ class MangareaderBridge extends BridgeAbstract{ $this->name = "Mangareader Bridge"; $this->uri = "http://www.mangareader.net"; $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 popular mangas"] = @@ -310,9 +310,7 @@ class MangareaderBridge extends BridgeAbstract{ $item = new \Item(); $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->description = htmlspecialchars(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 . "
"; + $item->timestamp = strtotime($xpath->query("td[2]", $chapter)->item(0)->nodeValue); array_unshift($this->items, $item); } }