diff options
Diffstat (limited to 'community')
| -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 |
4 files changed, 6 insertions, 6 deletions
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) |
