request = $param['n']; $html = file_get_html('http://www.dpstream.net/'.urlencode($this->request).'.html') or $this->returnError('Could not request DpsStream.', 404); } else { $this->returnError('You must specify a DpsStream serie name (?n=...).', 400); } $res = $html->find('div.ras5', -1); $limit = 100; $i = 0; foreach(array_reverse($res->find('.tggm a')) as $element) { $item = new Item(); $titre = $element->innertext; $url = 'http://www.dpstream.net/'.$element->href; $item->content .= ''; $item->uri = $url; $item->title = trim($titre); if(strrpos($item->title, 'Episode') !== false){ $this->items[] = $item; if($i>= $limit) break; $i ++; } } } public function getName(){ return 'Dps Stream'; } public function getURI(){ return 'http://www.dpstream.net/serie-878.html'; } public function getCacheDuration(){ return 1800; } public function getDescription(){ return "Dps Stream via rss-bridge"; } } ?>