intake-rss: support entry content

This commit is contained in:
Tim Van Baak 2023-07-24 17:52:15 +00:00
parent 1fc66e814d
commit e5632c5801
1 changed files with 7 additions and 0 deletions

View File

@ -43,6 +43,13 @@ def main():
if entry_desc := entry.get("summary"): if entry_desc := entry.get("summary"):
item["body"] = entry_desc 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"] = "<hr>" + content
else:
item["body"] = content
if entry_link: if entry_link:
item["link"] = entry_link item["link"] = entry_link