mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-10-27 21:35:09 +01:00
[GolemBridge] Remove empty list
The change in d00745c411 also introduced
empty lists at the start of (some, mostly multi-page) articles.
This commit removes the index altogether, also removing these empty
elements.
Tested articles:
https://www.golem.de/news/ankers-soundcore-sleep-a30-im-praxistest-diese-anc-stoepsel-verbessern-meinen-schlaf-2509-199735.html
https://www.golem.de/news/neuer-bmw-ix3-angeschaut-das-anti-autonome-auto-2509-199804.html
https://www.golem.de/news/kaum-umsatz-aber-milliarden-wert-chinas-neue-ki-sensation-cambricon-technologies-2509-199777.html
https://www.golem.de/news/supercomputer-jupiter-eingeweiht-europaeisch-ist-hochleistungsrechnen-richtig-gedacht-2509-199789.html
This commit is contained in:
@@ -141,7 +141,7 @@ class GolemBridge extends FeedExpander
|
|||||||
// delete known bad elements and unwanted gallery images
|
// delete known bad elements and unwanted gallery images
|
||||||
foreach (
|
foreach (
|
||||||
$article->find('div[id*="adtile"], #job-market, #seminars, iframe, .go-article-header__title, .go-article-header__kicker, .go-label--sponsored,
|
$article->find('div[id*="adtile"], #job-market, #seminars, iframe, .go-article-header__title, .go-article-header__kicker, .go-label--sponsored,
|
||||||
.gbox_affiliate, div.toc, .go-button-bar, .go-alink-list, .go-teaser-block, .go-vh, .go-paywall, .go-index-link, .go-pagination__list,
|
.gbox_affiliate, div.toc, .go-button-bar, .go-alink-list, .go-teaser-block, .go-vh, .go-paywall, .go-index, .go-pagination__list,
|
||||||
.go-gallery .[data-active="false"], .go-article-header__series') as $bad
|
.go-gallery .[data-active="false"], .go-article-header__series') as $bad
|
||||||
) {
|
) {
|
||||||
$bad->remove();
|
$bad->remove();
|
||||||
|
|||||||
Reference in New Issue
Block a user