From 7a59c71c3b3f50784af49a26bbe56e3be618a65e Mon Sep 17 00:00:00 2001 From: Pinapelz Date: Tue, 22 Apr 2025 18:07:16 -0700 Subject: add rbdx_plus support --- news_feed.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'news_feed.py') 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 -- cgit v1.2.3