diff options
| author | Pinapelz <yukais@pinapelz.com> | 2025-04-14 12:56:08 -0700 |
|---|---|---|
| committer | Pinapelz <yukais@pinapelz.com> | 2025-04-14 12:56:08 -0700 |
| commit | f83f2c28021f309c6dc3c89d3d25637b570b4ec9 (patch) | |
| tree | 4fb4c22a82b79f50000ff7061e8e3bbaed6f7af4 /news_feed.py | |
| parent | c9c90128977c9e63f8151056d9c28ec61e6b717f (diff) | |
add maimai DX INTERNATIONAL basic info to scraper
Diffstat (limited to 'news_feed.py')
| -rw-r--r-- | news_feed.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/news_feed.py b/news_feed.py index d796d64..13720a8 100644 --- a/news_feed.py +++ b/news_feed.py @@ -22,6 +22,7 @@ import bemani.sdvx as sound_voltex import bemani.iidx as iidx import sega.chuni_jp as chunithm_jp import sega.maimaidx_jp as maimaidx_jp +import sega.maimaidx_intl as maimaidx_intl import sega.ongeki_jp as ongeki_jp import constants @@ -38,6 +39,9 @@ def get_news(news_url: str, version=None) -> list: elif news_url == constants.MAIMAIDX_JP_NEWS_SITE: if version == constants.MAIMAIDX_VERSION.PRISM_PLUS: news_posts = sorted(maimaidx_jp.parse_maimaidx_jp_prism_plus_news_site(site_data), key=lambda x: x['timestamp'], reverse=True) + elif news_url == constants.MAIMAIDX_INTL_NEWS_SITE: + if version == constants.MAIMAIDX_VERSION.PRISM: + news_posts = sorted(maimaidx_intl.parse_maimaidx_intl_prism_news_site(site_data), key=lambda x: x['timestamp'], reverse=True) elif news_url == constants.ONGEKI_JP_NEWS_SITE: if version == constants.ONGEKI_VERSION.REFRESH: news_posts = sorted(ongeki_jp.parse_ongeki_refresh_news_site(site_data), key=lambda x: x['timestamp'], reverse=True) |
