mirror of https://gitlab.com/bashrc2/epicyon
Clear first item
parent
4ed62cf0d3
commit
ee14bc2ef2
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue