commit 74970a608d36665adcbe614761f9031ebf842273 from: Aleksey Ryndin date: Tue Jan 21 21:15:08 2025 UTC Fix: any link tag commit - 7eadd69076082f599ce52e705272d06c65dfdddd commit + 74970a608d36665adcbe614761f9031ebf842273 blob - f8f591978487610ca7ea8a29c3c6eb41bc023484 blob + 5840bb92f77dc40592bbf2cb3ec0f9558c6822c0 --- capsule/vostok/atom2gemfeed.py +++ capsule/vostok/atom2gemfeed.py @@ -78,7 +78,7 @@ def _main(raw_url): for child in entry: _, _, tag = child.tag.rpartition('}') entry_dict[tag] = child.text - if tag == "link" and child.attrib.get("rel") == "alternate": + if tag == "link" and not _is_gemini_link(gemini_link): gemini_link = urljoin(raw_url, child.attrib.get("href", ""))