request = $param['n']; $html = file_get_html('http://www.mangaxd.ws/'.urlencode($this->request).'.html') or $this->returnError('Could not request mangaXD.', 404); } else { $this->returnError('You must specify a mangaXD serie name (?n=...).', 400); } $limit = 30; $i = 0; foreach(array_reverse($html->find('ul.listing_episode_commentaire li')) as $element) { $item = new Item(); $el = $element->children(0); $titre = $el->innertext; $url = 'http://www.mangaxd.ws/'.$el->href; $item->content .= ''; $item->uri = $url; $item->title = trim($titre); $this->items[] = $item; if($i>= $limit) break; $i ++; } } public function getName(){ return 'mangaXD'; } public function getURI(){ return 'http://www.mangaxd.ws/'; } public function getCacheDuration(){ return 1800; } public function getDescription(){ return "mangaXD via rss-bridge"; } } ?>