[DesoutterBridge] Fix bridge after DOM changes
This commit is contained in:
parent
d34411137f
commit
1efb7c7bce
1 changed files with 3 additions and 3 deletions
|
@ -159,13 +159,13 @@ class DesoutterBridge extends BridgeAbstract {
|
||||||
foreach($html->find('article') as $article) {
|
foreach($html->find('article') as $article) {
|
||||||
$item = array();
|
$item = array();
|
||||||
|
|
||||||
$item['uri'] = $article->find('[itemprop="name"]', 0)->href;
|
$item['uri'] = $article->find('a', 0)->href;
|
||||||
$item['title'] = $article->find('[itemprop="name"]', 0)->title;
|
$item['title'] = $article->find('a[title]', 0)->title;
|
||||||
|
|
||||||
if($this->getInput('full')) {
|
if($this->getInput('full')) {
|
||||||
$item['content'] = $this->getFullNewsArticle($item['uri']);
|
$item['content'] = $this->getFullNewsArticle($item['uri']);
|
||||||
} else {
|
} else {
|
||||||
$item['content'] = $article->find('[itemprop="description"]', 0)->plaintext;
|
$item['content'] = $article->find('div.tile-body p', 0)->plaintext;
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->items[] = $item;
|
$this->items[] = $item;
|
||||||
|
|
Loading…
Reference in a new issue