aboutsummaryrefslogtreecommitdiffstats
path: root/news_feed.py
diff options
context:
space:
mode:
authorPinapelz <yukais@pinapelz.com>2025-04-22 17:36:13 -0700
committerPinapelz <yukais@pinapelz.com>2025-04-22 17:36:13 -0700
commit4583d95b06071b637cf6794f332b099d30b9a5c3 (patch)
tree4df38a9c3d353e1cad4b54ca917b24e9af09881b /news_feed.py
parent7b5ae11e469c762ed8145cf74bd1c67d9002c52b (diff)
add support for mus_plus
Diffstat (limited to 'news_feed.py')
-rw-r--r--news_feed.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/news_feed.py b/news_feed.py
index a5a1ade..766d77b 100644
--- a/news_feed.py
+++ b/news_feed.py
@@ -32,6 +32,7 @@ import taito.music_diver as music_diver
import bandai_namco.taiko as taiko
import community.disc as disc
import community.wacca_plus.wacca_plus as wac_plus
+import community.museca_plus as mus_plus
import constants
import translate
@@ -143,6 +144,11 @@ def get_news(news_url: str, version=None) -> list:
else:
messages = disc.fetch_messages(constants.WACCA_PLUS_MAGIC_STRING)
news_posts = sorted(wac_plus.parse_announcement_messages(messages), key=lambda x: x['timestamp'], reverse=True)
+
+ elif news_url == constants.MUSECA_PLUS_NEWS_SITE:
+ site_data = download_site_as_html(news_url)
+ news_posts = sorted(mus_plus.parse_museca_plus_news_site(site_data), key=lambda x: x['timestamp'], reverse=True)
+
else:
news_posts = []
return news_posts
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage