mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-04-09 16:38:50 +00:00
parent
4a21855e5c
commit
8ac5045963
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user