mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-04-05 17:19:37 +00:00
[AsahiShimbunAJWBridge]: Fix title extraction (#3085)
This commit is contained in:
parent
1232de5744
commit
8b91921a70
@ -68,7 +68,12 @@ class AsahiShimbunAJWBridge extends BridgeAbstract
|
|||||||
$e_video->outertext = '';
|
$e_video->outertext = '';
|
||||||
$element->innertext = "VIDEO: $element->innertext";
|
$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;
|
$this->items[] = $item;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user