From dd4dcfa59c08e5bece71861647f82c05e60c0cfa Mon Sep 17 00:00:00 2001 From: Christian Schabesberger Date: Sat, 8 Feb 2025 01:41:51 +0100 Subject: [PATCH] fix nn.de description and paywall filter (#4444) --- bridges/NurembergerNachrichtenBridge.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bridges/NurembergerNachrichtenBridge.php b/bridges/NurembergerNachrichtenBridge.php index 10644212..2c303533 100644 --- a/bridges/NurembergerNachrichtenBridge.php +++ b/bridges/NurembergerNachrichtenBridge.php @@ -6,7 +6,7 @@ class NurembergerNachrichtenBridge extends BridgeAbstract const NAME = 'Nürnberger Nachrichten'; const CACHE_TIMEOUT = 3600; const URI = 'https://www.nn.de'; - const DESCRIPTION = 'Bridge for Bavarian regional news site nordbayern.de'; + const DESCRIPTION = 'Bridge for NurembergerNachrichten news site nn.de'; const PARAMETERS = [ [ 'region' => [ 'name' => 'region', @@ -66,7 +66,7 @@ class NurembergerNachrichtenBridge extends BridgeAbstract // exclude nn+ articles if desired if ( $this->getInput('hideNNPlus') && - str_contains($articleContent->find('article[id=article]', 0)->find('header', 0), 'icon-nnplus') + $articleContent->find('div[class=paywall]') ) { continue; }