diff options
| author | Pinapelz <yukais@pinapelz.com> | 2025-04-22 18:07:16 -0700 |
|---|---|---|
| committer | Pinapelz <yukais@pinapelz.com> | 2025-04-22 18:07:16 -0700 |
| commit | 7a59c71c3b3f50784af49a26bbe56e3be618a65e (patch) | |
| tree | b1e3967b4871e756721838cd0c820af8c7ded273 /news_feed.py | |
| parent | 476f4648a1c8166f938c1e389466aa6f1f7d72d9 (diff) | |
add rbdx_plus support
Diffstat (limited to 'news_feed.py')
| -rw-r--r-- | news_feed.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/news_feed.py b/news_feed.py index 766d77b..c6df924 100644 --- a/news_feed.py +++ b/news_feed.py @@ -33,6 +33,7 @@ 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 community.rbdx as rbdx import constants import translate @@ -149,6 +150,10 @@ def get_news(news_url: str, version=None) -> list: 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) + elif news_url == constants.RB_DELUXE_PLUS_NEWS: + site_data = download_site_as_html(news_url) + news_posts = rbdx.get_carousel_posts(site_data) + else: news_posts = [] return news_posts |
