[HentaiHavenBridge] code simplification
Signed-off-by: Pierre Mazière <pierre.maziere@gmx.com>
This commit is contained in:
parent
86a6f68af4
commit
7d9d6f3d79
1 changed files with 2 additions and 1 deletions
|
@ -7,7 +7,8 @@ class HentaiHavenBridge extends BridgeAbstract{
|
||||||
public $description = "Returns releases from Hentai Haven";
|
public $description = "Returns releases from Hentai Haven";
|
||||||
|
|
||||||
public function collectData(){
|
public function collectData(){
|
||||||
$html = $this->getSimpleHTMLDOM('http://hentaihaven.org/') or $this->returnServerError('Could not request Hentai Haven.');
|
$html = $this->getSimpleHTMLDOM($this->uri)
|
||||||
|
or $this->returnServerError('Could not request Hentai Haven.');
|
||||||
foreach($html->find('div.zoe-grid') as $element) {
|
foreach($html->find('div.zoe-grid') as $element) {
|
||||||
$item = array();
|
$item = array();
|
||||||
$item['uri'] = $element->find('div.brick-content h3 a', 0)->href;
|
$item['uri'] = $element->find('div.brick-content h3 a', 0)->href;
|
||||||
|
|
Loading…
Reference in a new issue