Skip first entry in atom feed

main
Bob Mottram 2022-01-13 22:57:16 +00:00
parent 7a04a9f323
commit b2f9a046ed
1 changed files with 4 additions and 0 deletions

View File

@ -983,7 +983,11 @@ def _atom_feed_yt_to_dict(base_dir: str, domain: str, xml_str: str,
atom_items = xml_str.split('<entry>') atom_items = xml_str.split('<entry>')
post_ctr = 0 post_ctr = 0
max_bytes = max_feed_item_size_kb * 1024 max_bytes = max_feed_item_size_kb * 1024
first_entry = True
for atom_item in atom_items: for atom_item in atom_items:
if first_entry:
first_entry = False
continue
if not atom_item: if not atom_item:
continue continue
if not atom_item.strip(): if not atom_item.strip():