[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
1 changed files with 4 additions and 0 deletions

View File

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