# HG changeset patch # User paulo # Date 1702930227 0 # Node ID 2ed8cf5f36bf03ce53411694fd0bbcc6405607a2 # Parent df18c9d8857c5a6c4e3c2d44616a3b506b302585 myrss2: fix handling of null feed title or links; miscellaneous URL updates diff -r df18c9d8857c -r 2ed8cf5f36bf myrss2/FEEDS --- a/myrss2/FEEDS Sun Aug 06 17:34:26 2023 +0000 +++ b/myrss2/FEEDS Mon Dec 18 20:10:27 2023 +0000 @@ -10,7 +10,7 @@ http://rss.slashdot.org/Slashdot/slashdot http://www.theverge.com/rss/index.xml https://restofworld.org/feed/latest -http://www.reddit.com/.rss +https://www.reddit.com/.rss http://feeds.feedburner.com/Metafilter http://feeds.feedburner.com/AskMetafilter http://feeds.slate.com/slate @@ -28,7 +28,7 @@ http://longform.org/feed/ http://longreads.com/rss/ https://www.project-syndicate.org/rss -http://lifehacker.com/rss +https://lifehacker.com/feed/rss http://jalopnik.com/rss https://www.thedrive.com/feed https://www.rideapart.com/rss/articles/all/ diff -r df18c9d8857c -r 2ed8cf5f36bf myrss2/myrss_app.py --- a/myrss2/myrss_app.py Sun Aug 06 17:34:26 2023 +0000 +++ b/myrss2/myrss_app.py Mon Dec 18 20:10:27 2023 +0000 @@ -138,6 +138,11 @@ (title, link, items) = feed + if title is None: + title = "(No title)" + if link is None: + link = "" + logging.debug("title: %s", title) body.h2.a(_strip_html(title), href=link, klass="z%d" % (link_z % MAX_LINK_Z)) link_z += 1