diff options
| author | Pinapelz <yukais@pinapelz.com> | 2025-04-14 11:17:36 -0700 |
|---|---|---|
| committer | Pinapelz <yukais@pinapelz.com> | 2025-04-14 11:17:36 -0700 |
| commit | d93b2060a22ea82f8028df80d4549abee2611f98 (patch) | |
| tree | a94118d47480572d51c60662bc0029a10fcc3eb3 /sega/chuni_jp.py | |
| parent | fde865a42f1d2623a57bdac1cc1f81ffbaa6578d (diff) | |
set headline to always None on sega games
content contains the same info
Diffstat (limited to 'sega/chuni_jp.py')
| -rw-r--r-- | sega/chuni_jp.py | 6 |
1 files changed, 0 insertions, 6 deletions
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: |
