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", ""),
|
title=getattr(entry, "title", ""),
|
||||||
summary=getattr(entry, "description", "").strip(),
|
summary=getattr(entry, "description", "").strip(),
|
||||||
link=getattr(entry, "link", ""),
|
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
|
@staticmethod
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
id: nl.eddydevink.rss
|
id: nl.eddydevink.rss
|
||||||
version: 1.5.0
|
version: 1.5.1
|
||||||
modules:
|
modules:
|
||||||
- buzzrss
|
- buzzrss
|
||||||
main_class: RSSBot
|
main_class: RSSBot
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue