mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-04-12 01:48:48 +00:00
correction d'un bug sur la sélection des articles
This commit is contained in:
parent
d23488205e
commit
280edb5adf
@ -10,12 +10,12 @@ class AliasBridge extends BridgeAbstract{
|
||||
|
||||
public function collectData(array $param){
|
||||
$html = file_get_html('http://alias.sh/latest-aliases/') or $this->returnError('Could not request Alias.', 404);
|
||||
|
||||
$html = $html->find('#content',0);
|
||||
foreach($html->find('.views-row') as $element) {
|
||||
$item = new \Item();
|
||||
$item->uri = 'http://alias.sh/'.$element->find('a',0)->href;
|
||||
//$item->thumbnailUri = $element->find('img',0)->getAttribute('data-defer-src');
|
||||
$item->content = $element->find('.bash',0)->plaintext;
|
||||
$item->content = '<pre>'.$element->find('.bash',0)->outertext.'</pre>';
|
||||
$item->title = $element->find('a',0)->plaintext;
|
||||
$this->items[] = $item;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user