From 0116dde27549fcdaf5600bc255173047e1fce4f9 Mon Sep 17 00:00:00 2001 From: Mynacol Date: Sat, 16 Dec 2023 10:43:27 +0100 Subject: [PATCH] [GolemBridge] Add h2 elements from article content Else some headers are just missing. Example article with previously missing movie names: https://www.golem.de/news/science-fiction-die-zehn-besten-filme-aus-den-spannenden-70ern-2312-179557.html --- bridges/GolemBridge.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bridges/GolemBridge.php b/bridges/GolemBridge.php index debf5b29..c1b03433 100644 --- a/bridges/GolemBridge.php +++ b/bridges/GolemBridge.php @@ -132,7 +132,7 @@ class GolemBridge extends FeedExpander $img->src = $img->getAttribute('data-src-full'); } - foreach ($content->find('p, h1, h3, img[src*="."]') as $element) { + foreach ($content->find('p, h1, h2, h3, img[src*="."]') as $element) { $item .= $element; }