Skip to content

Commit

Permalink
[GolemBridge] Add h2 elements from article content
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Mynacol committed Dec 16, 2023
1 parent d4ae557 commit 0116dde
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bridges/GolemBridge.php
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ private function extractContent($page)
$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;
}

Expand Down

0 comments on commit 0116dde

Please sign in to comment.