mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-03-14 20:21:14 +03:00
[AsahiShimbunAJWBridge]: Fix title extraction (#3085)
This commit is contained in:
parent
1232de5744
commit
8b91921a70
1 changed files with 6 additions and 1 deletions
|
@ -68,7 +68,12 @@ class AsahiShimbunAJWBridge extends BridgeAbstract
|
|||
$e_video->outertext = '';
|
||||
$element->innertext = "VIDEO: $element->innertext";
|
||||
}
|
||||
$item['title'] = $element->innertext;
|
||||
$e_title = $element->find('.title', 0);
|
||||
if ($e_title) {
|
||||
$item['title'] = $e_title->innertext;
|
||||
} else {
|
||||
$item['title'] = $element->innertext;
|
||||
}
|
||||
|
||||
$this->items[] = $item;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue