morss: fix item removal

Usual issue when editing a list while looping over it
master
pictuga 2020-07-06 19:25:48 +02:00
parent f18a128ee6
commit 6021b912ff
1 changed files with 1 additions and 1 deletions

View File

@ -350,7 +350,7 @@ def FeedGather(rss, url, options):
else:
# default behavior, take the first items (in appearing order)
sorted_items = rss.items
sorted_items = list(rss.items)
for i, item in enumerate(sorted_items):
if time.time() - start_time > lim_time >= 0 or i + 1 > lim_item >= 0: