diff options
| -rw-r--r-- | bandai_namco/taiko.py | 3 | ||||
| -rw-r--r-- | bemani/ddr.py | 3 | ||||
| -rw-r--r-- | bemani/iidx.py | 1 | ||||
| -rw-r--r-- | bemani/sdvx.py | 3 | ||||
| -rw-r--r-- | community/disc.py | 2 | ||||
| -rw-r--r-- | community/museca_plus.py | 4 | ||||
| -rw-r--r-- | community/rbdx.py | 3 | ||||
| -rw-r--r-- | community/wacca_plus/wacca_plus.py | 3 | ||||
| -rw-r--r-- | konami/eamuse_app.py | 3 | ||||
| -rw-r--r-- | sega/chuni_intl.py | 1 | ||||
| -rw-r--r-- | sega/chuni_jp.py | 1 | ||||
| -rw-r--r-- | sega/maimaidx_intl.py | 3 | ||||
| -rw-r--r-- | sega/maimaidx_jp.py | 1 | ||||
| -rw-r--r-- | sega/ongeki_jp.py | 4 |
14 files changed, 21 insertions, 14 deletions
diff --git a/bandai_namco/taiko.py b/bandai_namco/taiko.py index 0aa2e0e..d6c240d 100644 --- a/bandai_namco/taiko.py +++ b/bandai_namco/taiko.py @@ -47,7 +47,8 @@ def parse_taiko_blog_site(html: str) -> list: "headline": headline, "content": "\n".join(content), "url": None, - "images": images + "images": images, + 'is_ai_summary': False } entries.append(entry) diff --git a/bemani/ddr.py b/bemani/ddr.py index e36b392..e9d4584 100644 --- a/bemani/ddr.py +++ b/bemani/ddr.py @@ -54,7 +54,8 @@ def parse_ddr_world_news_site(html: str): "headline": headline, "content": content, "url": None, - "images": images + "images": images, + 'is_ai_summary': False }) return news_entries diff --git a/bemani/iidx.py b/bemani/iidx.py index cc69fe1..521d4f9 100644 --- a/bemani/iidx.py +++ b/bemani/iidx.py @@ -61,6 +61,7 @@ def parse_pinky_crush_news_site(html: str): "content": content, "url": None, "images": [], + 'is_ai_summary': False }) return news_items diff --git a/bemani/sdvx.py b/bemani/sdvx.py index c77f198..6b1d857 100644 --- a/bemani/sdvx.py +++ b/bemani/sdvx.py @@ -44,7 +44,8 @@ def parse_exceed_gear_news_site(html: str): 'headline': headline_text, 'content': content, "url": None, - 'images': images + 'images': images, + 'is_ai_summary': False }) return entries diff --git a/community/disc.py b/community/disc.py index 8cc5aeb..b6b7815 100644 --- a/community/disc.py +++ b/community/disc.py @@ -24,5 +24,3 @@ def fetch_messages(channel_id: str): } response = requests.get(url, headers=headers) return response.json() - if response.ok: - print(f"Failed to fetch: {response.status_code} - {response.text}") diff --git a/community/museca_plus.py b/community/museca_plus.py index 81c7313..b84ded5 100644 --- a/community/museca_plus.py +++ b/community/museca_plus.py @@ -22,7 +22,6 @@ def parse_museca_plus_news_site(html: str) -> list: images = [] for img in p.find_all("img"): img_url = urljoin(base_url, img.get("src")) - parent_a = img.find_parent("a") images.append({"image": img_url, "link": None}) content = p.get_text(separator=' ', strip=True) @@ -35,7 +34,8 @@ def parse_museca_plus_news_site(html: str) -> list: 'headline': None, 'content': content, 'url': None, - 'images': images + 'images': images, + 'is_ai_summary': False }) return news_posts diff --git a/community/rbdx.py b/community/rbdx.py index aab1ba2..e4b1f49 100644 --- a/community/rbdx.py +++ b/community/rbdx.py @@ -24,6 +24,7 @@ def get_carousel_posts(html: str): "url": None, "headline": None, "content": "[お知らせ] ANNOUNCEMENT FROM REFLECT BEAT DELUXE PLUS", - "images": [{"image": urljoin(base_url, img_tag['src']), "link": None}] + "images": [{"image": urljoin(base_url, img_tag['src']), "link": None}], + 'is_ai_summary': False }) return news_posts diff --git a/community/wacca_plus/wacca_plus.py b/community/wacca_plus/wacca_plus.py index 944b0b9..d5e0aa4 100644 --- a/community/wacca_plus/wacca_plus.py +++ b/community/wacca_plus/wacca_plus.py @@ -125,7 +125,8 @@ def parse_announcement_messages(message_json: dict): "content": "NEW INFORMATION FROM WACCA PLUS / WACCA PLUS の最新情報", "headline": None, "url": None, - "images": filtered_images + "images": filtered_images, + 'is_ai_summary': False }) _save_cache(cache) diff --git a/konami/eamuse_app.py b/konami/eamuse_app.py index b552477..d7a9b3a 100644 --- a/konami/eamuse_app.py +++ b/konami/eamuse_app.py @@ -44,7 +44,8 @@ def parse_news_page(html: str, identifier: str): "headline": None, "content": content, "url": url, - "images": images + "images": images, + 'is_ai_summary': False } entries.append(entry) 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 |
