comparison myrss2/myrss_app.py @ 142:2ed8cf5f36bf

myrss2: fix handling of null feed title or links; miscellaneous URL updates
author paulo
date Mon, 18 Dec 2023 20:10:27 +0000
parents 1a5c0fc5627a
children
comparison
equal deleted inserted replaced
1:ad9a97e0db19 2:669ba3a5dd8c
136 if feed is None: 136 if feed is None:
137 continue 137 continue
138 138
139 (title, link, items) = feed 139 (title, link, items) = feed
140 140
141 if title is None:
142 title = "(No title)"
143 if link is None:
144 link = ""
145
141 logging.debug("title: %s", title) 146 logging.debug("title: %s", title)
142 body.h2.a(_strip_html(title), href=link, klass="z%d" % (link_z % MAX_LINK_Z)) 147 body.h2.a(_strip_html(title), href=link, klass="z%d" % (link_z % MAX_LINK_Z))
143 link_z += 1 148 link_z += 1
144 p = body.p 149 p = body.p
145 150