From e5632c580178e535606ab40a8e49384c768e32db Mon Sep 17 00:00:00 2001 From: Tim Van Baak Date: Mon, 24 Jul 2023 17:52:15 +0000 Subject: [PATCH] intake-rss: support entry content --- intake-rss/intake_rss/core.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/intake-rss/intake_rss/core.py b/intake-rss/intake_rss/core.py index 623cf66..a277ef4 100644 --- a/intake-rss/intake_rss/core.py +++ b/intake-rss/intake_rss/core.py @@ -43,6 +43,13 @@ def main(): if entry_desc := entry.get("summary"): item["body"] = entry_desc + if entry_content := entry.get("content"): + content = " ".join([c.value for c in entry_content]) + if "body" in item: + item["body"] = "
" + content + else: + item["body"] = content + if entry_link: item["link"] = entry_link