aboutsummaryrefslogtreecommitdiffstats
path: root/sega
diff options
context:
space:
mode:
authorPinapelz <yukais@pinapelz.com>2025-04-25 00:17:01 -0700
committerPinapelz <yukais@pinapelz.com>2025-04-25 00:17:01 -0700
commit4b0998b4afa48f9e2968b1bb76ef42bc6a94e1b6 (patch)
tree9b9c99ad7458f1e79dfcac0ddc9a8ca6fc483495 /sega
parent5344e17f9c626b1f0464e8c90c6269b2c0587c74 (diff)
add is_ai_summary key to all new_data
Diffstat (limited to 'sega')
-rw-r--r--sega/chuni_intl.py1
-rw-r--r--sega/chuni_jp.py1
-rw-r--r--sega/maimaidx_intl.py3
-rw-r--r--sega/maimaidx_jp.py1
-rw-r--r--sega/ongeki_jp.py4
5 files changed, 6 insertions, 4 deletions
diff --git a/sega/chuni_intl.py b/sega/chuni_intl.py
index 88b7695..d00a01b 100644
--- a/sega/chuni_intl.py
+++ b/sega/chuni_intl.py
@@ -50,6 +50,7 @@ def make_chuni_intl_parser(identifier: str, parser: ParserVersion):
"content": headline,
"url": url,
"images": [{"image": image_url, "link": url}] if image_url else [],
+ 'is_ai_summary': False
}
)
diff --git a/sega/chuni_jp.py b/sega/chuni_jp.py
index 1feafc1..b69abec 100644
--- a/sega/chuni_jp.py
+++ b/sega/chuni_jp.py
@@ -63,6 +63,7 @@ def make_chuni_jp_parser(identifier: str, parser: ParserVersion):
images["link"] = news_url
news_dict["images"] = [images]
news_dict["identifier"] = identifier
+ news_dict["is_ai_summary"] = False
news_entries.append(news_dict)
diff --git a/sega/maimaidx_intl.py b/sega/maimaidx_intl.py
index 1671d9f..f11033d 100644
--- a/sega/maimaidx_intl.py
+++ b/sega/maimaidx_intl.py
@@ -37,7 +37,8 @@ def make_maimaidx_intl_parser(identifier: str, parser: ParserVersion):
"image": full_image_url,
"link": None
}
- ]
+ ],
+ 'is_ai_summary': False
}
entries.append(entry)
return entries
diff --git a/sega/maimaidx_jp.py b/sega/maimaidx_jp.py
index 720a618..c5670ce 100644
--- a/sega/maimaidx_jp.py
+++ b/sega/maimaidx_jp.py
@@ -46,6 +46,7 @@ def make_maimaidx_jpn_parser(identifier: str, parser: ParserVersion):
"headline": None,
"content": content,
"url": url,
+ 'is_ai_summary': False,
"images": [{
"image": image_url,
"link": url
diff --git a/sega/ongeki_jp.py b/sega/ongeki_jp.py
index a2a05fb..7c45281 100644
--- a/sega/ongeki_jp.py
+++ b/sega/ongeki_jp.py
@@ -24,9 +24,6 @@ def make_ongeki_parser(identifier: str, parser: ParserVersion):
date_text = date_type_text.text.strip().split("/")[0].strip() if date_type_text else None
type_text = date_type_text.text.strip().split("/")[-1].strip() if "/" in date_type_text.text else None
- headline_tag = li.select_one(".p-news__listTextUnder")
- headline = headline_tag.text.strip() if headline_tag else None
-
timestamp = None
if date_text:
try:
@@ -43,6 +40,7 @@ def make_ongeki_parser(identifier: str, parser: ParserVersion):
"headline": None,
"content": image_alt,
"url": url,
+ 'is_ai_summary': False,
"images": [{
"image": image_url,
"link": image_link
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage