maintainer = "albirew"; $this->name = "Novel Updates"; $this->uri = "http://www.novelupdates.com/"; $this->description = "Returns releases from Novel Updates"; $this->parameters[] = array( 'n'=>array( 'name'=>'Novel URL', 'required'=>true ) ); } public function collectData(){ $param=$this->parameters[$this->queriedContext]; if (!isset($param['n']['value'])) $this->returnClientError('You must specify the novel URL (/series/...)'); $thread = parse_url($param['n']['value']) or $this->returnClientError('This URL seems malformed, please check it.'); if($thread['host'] !== 'www.novelupdates.com') $this->returnClientError('NovelUpdates URL only.'); if(strpos($thread['path'], 'series/') === FALSE) $this->returnClientError('You must specify the novel URL.'); $url = 'http://www.novelupdates.com'.$thread['path'].''; $fullhtml = $this->getSimpleHTMLDOM($url) or $this->returnServerError("Could not request NovelUpdates, novel not found"); $this->request = $fullhtml->find('h4.seriestitle', 0)->plaintext; // dirty fix for nasty simpledom bug: https://github.com/sebsauvage/rss-bridge/issues/259 // forcefully removes tbody $html = $fullhtml->find('table#myTable', 0)->innertext; $html = stristr($html, '
'); //strip thead $html = stristr($html, '