retronews

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

commit 1b042ecfaad92c12a97f7f2550f4e8402c99bd11
parent 65f8e0c6b3c263dddf0f59d3f287211be0a4f5cd
Author: luke8086 <55237178+luke8086@users.noreply.github.com>
Date:   Wed, 14 Jun 2023 14:20:50 +0000

Add support for fetching starred lobste.rs threads

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

diff --git a/retronews.py b/retronews.py @@ -861,6 +861,9 @@ def group_fetch_starred_threads(db: DB, page: int = 1) -> list[Message]: for provider, thread_ids in threads_by_provider.items(): if provider == "hn": threads += hn_fetch_threads_by_id(thread_ids) + elif provider == "lb": + # FIXME: Find way to fetch multiple threads by id at once + threads += [lb_fetch_thread(x) for x in thread_ids] threads.sort(key=lambda x: x.date, reverse=True)