[HeiseBridge] Consistently use seite=all parameter (#2465)

This also filters out the parameter wt_mc=rss.red.ho.ho.atom.beitrag.beitrag from the item uri.
This commit is contained in:
Mynacol 2022-02-24 19:41:42 +01:00 committed by GitHub
parent 0cf9da927e
commit 2811bdc054
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -40,12 +40,12 @@ class HeiseBridge extends FeedExpander {
protected function parseItem($feedItem) {
$item = parent::parseItem($feedItem);
$uri = $item['uri'] . '&seite=all';
$item['uri'] = explode('?', $item['uri'])[0] . '?seite=all';
$article = getSimpleHTMLDOMCached($uri);
$article = getSimpleHTMLDOMCached($item['uri']);
if ($article) {
$article = defaultLinkTo($article, $uri);
$article = defaultLinkTo($article, $item['uri']);
$item = $this->addArticleToItem($item, $article);
}