v1.5.1: detecteer DPG paywall-marker (dpp:paid) naast Telegraaf premium
This commit is contained in:
parent
a03f76ca83
commit
cbb9c2e55d
2 changed files with 7 additions and 2 deletions
|
|
@ -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: <premium>true</premium>
|
||||
str(getattr(entry, "premium", "")).lower() == "true"
|
||||
# DPG Media (AD/Volkskrant/Parool/Trouw): <dpp:paid>true</dpp:paid>
|
||||
or str(getattr(entry, "dpp_paid", "")).lower() == "true"
|
||||
),
|
||||
)
|
||||
|
||||
@staticmethod
|
||||
|
|
|
|||
Loading…
Reference in a new issue