From d93b2060a22ea82f8028df80d4549abee2611f98 Mon Sep 17 00:00:00 2001 From: Pinapelz Date: Mon, 14 Apr 2025 11:17:36 -0700 Subject: set headline to always None on sega games content contains the same info --- sega/chuni_jp.py | 6 ------ 1 file changed, 6 deletions(-) (limited to 'sega/chuni_jp.py') diff --git a/sega/chuni_jp.py b/sega/chuni_jp.py index 20743ed..bdbe800 100644 --- a/sega/chuni_jp.py +++ b/sega/chuni_jp.py @@ -39,13 +39,7 @@ def parse_chuni_jp_verse_news_site(html: str): headline = None content_text = "" if main_content: - img_tag = main_content.find("img") - if img_tag and img_tag.get("alt"): - headline = img_tag.get("alt") - else: - headline = main_content.get_text(separator=" ", strip=True) content_text = main_content.get_text(separator=" ", strip=True) - news_dict["headline"] = headline news_dict["content"] = content_text images = {"image": None, "link": None} if main_content: -- cgit v1.2.3