morss: focus on the most recent feed items

master
pictuga 2020-04-10 16:08:13 +02:00
parent 9e7b9d95ee
commit ee78a7875a
1 changed files with 2 additions and 1 deletions

View File

@ -420,7 +420,8 @@ def FeedGather(rss, url, options):
t.daemon = True
t.start()
for i, item in enumerate(list(rss.items)):
sorted_items = sorted(rss.items, key=lambda x:x.updated or x.time or 0, reverse=True)
for i, item in enumerate(sorted_items):
if threads == 1:
worker(*[i, item])