1
0
mirror of https://github.com/RSS-Bridge/rss-bridge.git synced 2025-01-16 13:50:01 +01:00

Fix NACSouthGermanyMediaLibraryBridge due to website changes (#4121)

This commit is contained in:
Tim-Florian Feulner 2024-06-03 00:55:39 +02:00 committed by GitHub
parent cfd406861e
commit 36706a3dec
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -85,12 +85,12 @@ class NACSouthGermanyMediaLibraryBridge extends BridgeAbstract
foreach ($page->find('div.flex-columns.entry') as $parent) {
# Find title
$title = $parent->find('h2', 0)->plaintext;
$title = trim($parent->find('h2')[0]->innertext);
# Find content
$contentBlock = $parent->find('ul', 0);
$contentBlock = $parent->find('div')[2];
$content = '';
foreach ($contentBlock->find('li') as $li) {
foreach ($contentBlock->find('li,p') as $li) {
$content .= '<p>' . $li->plaintext . '</p>';
}