From ee14bc2ef27e8740ac9cf3150108ef41cdfa9537 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Thu, 13 Jan 2022 12:19:35 +0000 Subject: [PATCH] Clear first item --- newswire.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/newswire.py b/newswire.py index dec0a727c..c611d07db 100644 --- a/newswire.py +++ b/newswire.py @@ -535,6 +535,7 @@ def _xml2str_to_dict(base_dir: str, domain: str, xml_str: str, first_item = True for rss_item in rss_items: if first_item: + first_item = False continue if not rss_item: continue @@ -631,6 +632,7 @@ def _xml1str_to_dict(base_dir: str, domain: str, xml_str: str, first_item = True for rss_item in rss_items: if first_item: + first_item = False continue if not rss_item: continue @@ -717,6 +719,7 @@ def _atom_feed_to_dict(base_dir: str, domain: str, xml_str: str, first_item = True for atom_item in atom_items: if first_item: + first_item = False continue if not atom_item: continue