initial tentative to support podcast RSS/atom feeds

This commit is contained in:
Ploum 2023-10-09 13:26:12 +02:00
parent deaa199303
commit 2b234cdc43
2 changed files with 10 additions and 0 deletions

View File

@ -4,6 +4,7 @@
Changes since beta1
- "--sync" can optionnaly take some lists as arguments, in order to make for specific sync
- "view source" to view the source code of a page
- initial tentative to support podcasts in RSS/Atom feeds
- new PlaintextRenderer which display .txt files without any margin/color/linebreaks
- default URL blocked list is now its own file to make contributions easier
- prompt color is now part of the theme

View File

@ -891,6 +891,15 @@ class FeedRenderer(GemtextRenderer):
for i in parsed.entries:
if "link" in i:
line = "=> %s " %i.link
elif "links" in i and len(i.links) > 0:
link = None
j = 0
while not link and j < len(i.links):
link = i.links[j].href
if link:
line = "=> %s "%link
else:
line = "* "
else:
line = "* "
if "published" in i: