[HeiseBrige] fix: broken bridge

This is a feed expander and heise sometimes includes
feed items which point to https://www.techstage.de
for which we dont have parsing for.
This commit is contained in:
Dag 2022-03-26 02:30:21 +01:00
parent 4d4ce3f380
commit b144ab2bd7

View file

@ -42,6 +42,10 @@ class HeiseBridge extends FeedExpander {
$item = parent::parseItem($feedItem); $item = parent::parseItem($feedItem);
$item['uri'] = explode('?', $item['uri'])[0] . '?seite=all'; $item['uri'] = explode('?', $item['uri'])[0] . '?seite=all';
if (strpos($item['uri'], 'https://www.heise.de') !== 0) {
return $item;
}
$article = getSimpleHTMLDOMCached($item['uri']); $article = getSimpleHTMLDOMCached($item['uri']);
if ($article) { if ($article) {