retronews

a featureful fork of the luke8086/retronews hn+lobste.rs tui
Log | Files | Refs | README | LICENSE

commit 9a30c5fa556b914289513ddcc1f651fd2a76e6e3
parent a8b425b612d451b9781a18491bfc71755e592a85
Author: quantumish <freifeld.david@gmail.com>
Date:   Sun,  9 Aug 2026 17:16:54 -0700

Merge branch 'main' of github.com:quantumish/retronews

Diffstat:
Mretronews.py | 7++++---
1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/retronews.py b/retronews.py @@ -173,6 +173,7 @@ GROUP_TABS = [ Group(label="New HN", fetch=lambda db, page: hn_fetch_new_threads(page)), Group(label="Ask HN", fetch=lambda db, page: hn_fetch_threads("ask", page)), Group(label="Show HN", fetch=lambda db, page: hn_fetch_threads("show", page)), + Group(label="Active HN", fetch=lambda db, page: hn_fetch_threads("active", page)), Group(label="Front LB", fetch=lambda db, page: lb_fetch_threads("", page)), Group(label="New LB", fetch=lambda db, page: lb_fetch_threads("newest", page)), Group(label="Starred", fetch=lambda db, page: group_fetch_starred_threads(db, page)), @@ -1019,7 +1020,7 @@ def hn_parse_entry(entry, thread_id = "", parent = None): title=my_title or parent_title, body=body, parent=parent, - url=entry["url"], + url=entry["url"] if "url" in entry else None, ) msg.children = [hn_parse_entry(child, thread_id, msg) for child in entry["children"]] @@ -1102,7 +1103,7 @@ def lb_parse_thread(thread): body=thread_body, children=None if thread.get("comments") is None else [], total_comments=thread["comment_count"] + 1, - url=thread["url"], + url=thread["url"] if "url" in thread else None, ) for comment in thread.get("comments", []) or []: @@ -1334,7 +1335,7 @@ def app_show_links_screen(app): urls = set(URL_REX.findall(" ".join(lines[1:]))) if app.selected_message is not None and app.selected_message.url is not None: - urls.insert(app.selected_message.url) + urls.add(app.selected_message.url) if len(urls) == 0: return app_show_flash(app, "No links available for opening")