Use '/latest' instead of the main page to reduce loading time
This commit is contained in:
parent
2aba815b55
commit
ff9c60f53c
1 changed files with 2 additions and 2 deletions
|
@ -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 Manga updates";
|
$this->description = "Returns the latest Manga updates";
|
||||||
$this->update = "2016-01-09";
|
$this->update = "2016-01-10";
|
||||||
|
|
||||||
$this->parameters["Get latest updates"] = '[]';
|
$this->parameters["Get latest updates"] = '[]';
|
||||||
|
|
||||||
|
@ -17,7 +17,7 @@ class MangareaderBridge extends BridgeAbstract{
|
||||||
public function collectData(array $param){
|
public function collectData(array $param){
|
||||||
|
|
||||||
/* We'll use the DOM parser for this as it makes navigation easier */
|
/* We'll use the DOM parser for this as it makes navigation easier */
|
||||||
$html = file_get_contents("http://www.mangareader.net");
|
$html = file_get_contents("http://www.mangareader.net/latest");
|
||||||
$doc = new DomDocument;
|
$doc = new DomDocument;
|
||||||
@$doc->loadHTML($html);
|
@$doc->loadHTML($html);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue