Clear first item

main
Bob Mottram 2022-01-13 12:19:35 +00:00
parent 4ed62cf0d3
commit ee14bc2ef2
1 changed files with 3 additions and 0 deletions

View File

@ -535,6 +535,7 @@ def _xml2str_to_dict(base_dir: str, domain: str, xml_str: str,
first_item = True first_item = True
for rss_item in rss_items: for rss_item in rss_items:
if first_item: if first_item:
first_item = False
continue continue
if not rss_item: if not rss_item:
continue continue
@ -631,6 +632,7 @@ def _xml1str_to_dict(base_dir: str, domain: str, xml_str: str,
first_item = True first_item = True
for rss_item in rss_items: for rss_item in rss_items:
if first_item: if first_item:
first_item = False
continue continue
if not rss_item: if not rss_item:
continue continue
@ -717,6 +719,7 @@ def _atom_feed_to_dict(base_dir: str, domain: str, xml_str: str,
first_item = True first_item = True
for atom_item in atom_items: for atom_item in atom_items:
if first_item: if first_item:
first_item = False
continue continue
if not atom_item: if not atom_item:
continue continue