From 81906842665debc9c390c917e8e2e3a030d8c1c7 Mon Sep 17 00:00:00 2001 From: Pinapelz Date: Sat, 4 Oct 2025 11:59:22 -0700 Subject: refactor: remove game version specific identifiers many of these will continue to work for a long time anyways without necessary updates --- bemani/ddr.py | 2 +- bemani/iidx.py | 3 ++- bemani/sdvx.py | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) (limited to 'bemani') diff --git a/bemani/ddr.py b/bemani/ddr.py index 9651c48..b5ae93c 100644 --- a/bemani/ddr.py +++ b/bemani/ddr.py @@ -50,7 +50,7 @@ def parse_ddr_world_news_site(html: str): news_entries.append({ "date": date_iso, - "identifier": "DDR_WORLD", + "identifier": "DDR", "type": None, "timestamp": timestamp, "headline": headline, diff --git a/bemani/iidx.py b/bemani/iidx.py index 521d4f9..de7f34c 100644 --- a/bemani/iidx.py +++ b/bemani/iidx.py @@ -7,6 +7,7 @@ KEY_TERMS_TL = [ ("クプロ", "QPro") ] +# Legacy code. e-amuse feed provides better data def parse_pinky_crush_news_site(html: str): base_url = "https://p.eagate.573.jp" type_map = { @@ -54,7 +55,7 @@ def parse_pinky_crush_news_site(html: str): content = re.sub(r'\s*/\s*', '/', content) news_items.append({ "date": date_str, - "identifier": "IIDX_PINKY_CRUSH", + "identifier": "IIDX", "type": type_map[type_class], "timestamp": timestamp, "headline": headline, diff --git a/bemani/sdvx.py b/bemani/sdvx.py index 6b1d857..9d5a33b 100644 --- a/bemani/sdvx.py +++ b/bemani/sdvx.py @@ -38,7 +38,7 @@ def parse_exceed_gear_news_site(html: str): entries.append({ 'date': date_str, - 'identifier': 'SOUND_VOLTEX_EXCEED_GEAR', + 'identifier': 'SOUND_VOLTEX', 'type': None, 'timestamp': timestamp, 'headline': headline_text, -- cgit v1.2.3