From cbb9c2e55dc9786603f9a402b5324f9d4d761c45 Mon Sep 17 00:00:00 2001 From: Eddy de Vink Date: Mon, 7 Sep 2026 20:16:42 +0200 Subject: [PATCH] v1.5.1: detecteer DPG paywall-marker (dpp:paid) naast Telegraaf premium --- buzzrss/bot.py | 7 ++++++- maubot.yaml | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/buzzrss/bot.py b/buzzrss/bot.py index 0858a5a..b9cbe08 100644 --- a/buzzrss/bot.py +++ b/buzzrss/bot.py @@ -465,7 +465,12 @@ class RSSBot(Plugin): title=getattr(entry, "title", ""), summary=getattr(entry, "description", "").strip(), link=getattr(entry, "link", ""), - paywalled=str(getattr(entry, "premium", "")).lower() == "true", + paywalled=( + # Telegraaf/NHD convention: true + str(getattr(entry, "premium", "")).lower() == "true" + # DPG Media (AD/Volkskrant/Parool/Trouw): true + or str(getattr(entry, "dpp_paid", "")).lower() == "true" + ), ) @staticmethod diff --git a/maubot.yaml b/maubot.yaml index ede82a6..f58ba4d 100644 --- a/maubot.yaml +++ b/maubot.yaml @@ -1,5 +1,5 @@ id: nl.eddydevink.rss -version: 1.5.0 +version: 1.5.1 modules: - buzzrss main_class: RSSBot