intake-rss: support entry content
This commit is contained in:
parent
1fc66e814d
commit
e5632c5801
@ -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"] = "<hr>" + content
|
||||
else:
|
||||
item["body"] = content
|
||||
|
||||
if entry_link:
|
||||
item["link"] = entry_link
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user