1
0
mirror of https://github.com/RSS-Bridge/rss-bridge.git synced 2025-07-31 22:00:23 +02:00

[TheGuardianBridge] Fix missing article content (fix #3032) (#3072)

This commit is contained in:
Corentin Garcia
2022-10-01 08:41:19 +02:00
committed by GitHub
parent 4a21855e5c
commit 8ac5045963

View File

@@ -66,7 +66,7 @@ class TheGuardianBridge extends FeedExpander
// figure contain's the main article image // figure contain's the main article image
$article = $articlePage->find('figure', 0); $article = $articlePage->find('figure', 0);
// content__article-body has the actual article // content__article-body has the actual article
foreach ($articlePage->find('.content__article-body') as $element) { foreach ($articlePage->find('#maincontent') as $element) {
$article = $article . $element; $article = $article . $element;
} }
@@ -80,11 +80,13 @@ class TheGuardianBridge extends FeedExpander
// List of all the crap in the article // List of all the crap in the article
$uselessElements = [ $uselessElements = [
'span > figcaption',
'#show-caption', '#show-caption',
'.element-atom', '.element-atom',
'.submeta', '.submeta',
'youtube-media-atom', 'youtube-media-atom',
'svg' 'svg',
'#the-checkbox',
]; ];
// Remove the listed crap // Remove the listed crap