diff options
| -rw-r--r-- | bemani/polaris_chord.py | 2 | ||||
| -rw-r--r-- | generate.py | 2 | ||||
| -rw-r--r-- | site/src/components/TitleBar.tsx | 5 | ||||
| -rw-r--r-- | site/src/utils.ts | 3 |
4 files changed, 8 insertions, 4 deletions
diff --git a/bemani/polaris_chord.py b/bemani/polaris_chord.py index 2880dae..a025d83 100644 --- a/bemani/polaris_chord.py +++ b/bemani/polaris_chord.py @@ -34,7 +34,7 @@ def parse_polaris_chord_news_site(html: str) -> list[dict]: headline = li.find('li', class_='news_title').text.strip() detail = li.find('li', class_='news_detail') - content = detail.get_text(separator='\n').strip() + content = detail.get_text().strip() first_a = detail.find('a', href=True) url = first_a['href'] if first_a else None diff --git a/generate.py b/generate.py index 293cfc1..a6ef392 100644 --- a/generate.py +++ b/generate.py @@ -142,10 +142,10 @@ if __name__ == "__main__": if not os.path.exists(OUTPUT_DIR): log_output(f"{OUTPUT_DIR} was not found. Creating this directory...") os.makedirs(OUTPUT_DIR) + polaris_news_data = generate_polaris_chord_news_file() iidx_news_data = generate_iidx_news_file(eamuse_feed=True) sdvx_news_data = generate_sdvx_news_file() ddr_news_data = generate_ddr_news_file(eamuse_feed=True) - polaris_news_data = generate_polaris_chord_news_file() dance_rush_news_data = generate_dance_rush_news_file() dance_around_news_data = generate_dance_around_news_file() gitadora_news_data = generate_gitadora_news_file() diff --git a/site/src/components/TitleBar.tsx b/site/src/components/TitleBar.tsx index 728060a..ce70aaa 100644 --- a/site/src/components/TitleBar.tsx +++ b/site/src/components/TitleBar.tsx @@ -32,7 +32,6 @@ const TitleBar: React.FC = () => { navigate(`${location.pathname}?${params.toString()}`); }; - useEffect(() => { const savedTheme = localStorage.getItem("theme"); @@ -52,7 +51,6 @@ const TitleBar: React.FC = () => { // eslint-disable-next-line react-hooks/exhaustive-deps }, [location.pathname, navigate]); - const gameCategories: GameCategory[] = [ { name: "KONAMI", @@ -64,6 +62,9 @@ const TitleBar: React.FC = () => { { id: "popn_music", title: "pop'n music" }, { id: "nostalgia", title: "NOSTALGIA" }, { id: "gitadora", title: "GITADORA" }, + { id: "dance_rush", title: "DANCERUSH" }, + { id: "dance_around", title: "DANCE aROUND" }, + { id: "polaris_chord", title: "POLARIS CHORD" }, ], }, { diff --git a/site/src/utils.ts b/site/src/utils.ts index 5cf35dc..c6f4ba6 100644 --- a/site/src/utils.ts +++ b/site/src/utils.ts @@ -20,6 +20,9 @@ export const getGameTitle = (gameId: string) => { if (lowerCaseGameId.startsWith("wacca")) return "WACCA PLUS"; if (lowerCaseGameId.startsWith("museca")) return "MÚSECA PLUS"; if (lowerCaseGameId.startsWith("reflec_beat") || lowerCaseGameId.startsWith("rb_deluxe")) return "REFLEC BEAT DELUXE PLUS"; + if (lowerCaseGameId.startsWith("dance_rush")) return "DANCERUSH"; + if(lowerCaseGameId.startsWith("dance_around")) return "DANCE aROUND"; + if(lowerCaseGameId.startsWith("polaris_chord")) return "POLARIS CHORD/ポラリスコード" return gameId.toUpperCase(); |
