From b2f9a046edaddc3ff4fad6f0e55910b3846a8dcd Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Thu, 13 Jan 2022 22:57:16 +0000 Subject: [PATCH] Skip first entry in atom feed --- newswire.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/newswire.py b/newswire.py index 356f5912d..f561ef53c 100644 --- a/newswire.py +++ b/newswire.py @@ -983,7 +983,11 @@ def _atom_feed_yt_to_dict(base_dir: str, domain: str, xml_str: str, atom_items = xml_str.split('') post_ctr = 0 max_bytes = max_feed_item_size_kb * 1024 + first_entry = True for atom_item in atom_items: + if first_entry: + first_entry = False + continue if not atom_item: continue if not atom_item.strip():