Skip to content

Commit

Permalink
[DesoutterBridge] Fix bridge after DOM changes
Browse files Browse the repository at this point in the history
  • Loading branch information
logmanoriginal committed Jun 9, 2019
1 parent d344111 commit 1efb7c7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions bridges/DesoutterBridge.php
Original file line number Diff line number Diff line change
Expand Up @@ -159,13 +159,13 @@ public function collectData() {
foreach($html->find('article') as $article) {
$item = array();

$item['uri'] = $article->find('[itemprop="name"]', 0)->href;
$item['title'] = $article->find('[itemprop="name"]', 0)->title;
$item['uri'] = $article->find('a', 0)->href;
$item['title'] = $article->find('a[title]', 0)->title;

if($this->getInput('full')) {
$item['content'] = $this->getFullNewsArticle($item['uri']);
} else {
$item['content'] = $article->find('[itemprop="description"]', 0)->plaintext;
$item['content'] = $article->find('div.tile-body p', 0)->plaintext;
}

$this->items[] = $item;
Expand Down

0 comments on commit 1efb7c7

Please sign in to comment.