diff options
| author | Pinapelz <yukais@pinapelz.com> | 2026-03-23 13:28:25 -0700 |
|---|---|---|
| committer | Pinapelz <yukais@pinapelz.com> | 2026-03-23 13:28:25 -0700 |
| commit | 5843c77e3fa14bed3c749303760acd467edf4d42 (patch) | |
| tree | 569f907c6beafbf200d1a25fa243e7ca84eddbc0 | |
| parent | 800108a93396a97ee42608aecc4abc878f739671 (diff) | |
update chuni parse to X_VERSE_X
| -rw-r--r-- | news_feed.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/news_feed.py b/news_feed.py index 3dd1d61..e5e1c08 100644 --- a/news_feed.py +++ b/news_feed.py @@ -121,7 +121,7 @@ class ChunithmJPSource(NewsSource): def fetch(self, version=None) -> list[dict]: from sega.chuni_jp import parse_chuni_jp_news_site, parse_chuni_jp_post_images site_data = download_site_as_html(constants.CHUNITHM_JP_NEWS_SITE) - if version not in [constants.CHUNITHM_VERSION.VERSE, constants.CHUNITHM_VERSION.X_VERSE]: + if version != constants.CHUNITHM_VERSION.X_VERSE_X: return [] news_posts = sorted(parse_chuni_jp_news_site(site_data), key=lambda x: x['timestamp'], reverse=True) news_posts = translate.add_translate_text_to_en(news_posts) |
