[FierPandaBridge] fix title extraction
Signed-off-by: Pierre Mazière <pierre.maziere@gmx.com>
This commit is contained in:
parent
1819943451
commit
3fa965cf3c
1 changed files with 1 additions and 1 deletions
|
@ -12,7 +12,7 @@ class FierPandaBridge extends BridgeAbstract {
|
|||
foreach($html->find('div.container-content article') as $element) {
|
||||
$item = array();
|
||||
$item['uri'] = $this->getURI().$element->find('a', 0)->href;
|
||||
$item['title'] = trim($element->find('h2 a', 0)->innertext);
|
||||
$item['title'] = trim($element->find('h1 a', 0)->innertext);
|
||||
// Remove the link at the end of the article
|
||||
$element->find('p a', 0)->outertext = '';
|
||||
$item['content'] = $element->find('p', 0)->innertext;
|
||||
|
|
Loading…
Reference in a new issue