From 9e8993c67a1ba3eca244c5c2de6ebdf0fb6886d1 Mon Sep 17 00:00:00 2001 From: jwkim Date: Thu, 27 Aug 2026 10:03:03 +0900 Subject: [PATCH] =?UTF-8?q?=EB=91=90=EC=82=B0=20=EC=83=81=EC=84=A4=20?= =?UTF-8?q?=EC=9D=91=EC=9B=90=EA=B0=80=20=ED=8A=B9=EB=A1=80=20=EC=A0=9C?= =?UTF-8?q?=EA=B1=B0=20=E2=80=94=20=EC=A0=84=20=ED=8C=80=20=EB=8F=99?= =?UTF-8?q?=EC=9D=BC=ED=95=98=EA=B2=8C=20=EC=98=A4=EB=8A=98=EC=9D=98=20?= =?UTF-8?q?=EC=83=9D=EC=84=B1=EA=B3=A1=EB=A7=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Fable 5 --- frontend/src/lib/playlist.ts | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/frontend/src/lib/playlist.ts b/frontend/src/lib/playlist.ts index 436889e..c01996e 100644 --- a/frontend/src/lib/playlist.ts +++ b/frontend/src/lib/playlist.ts @@ -17,14 +17,6 @@ export type Track = { // 경로별 정적 플레이리스트 — 월드컵 종료로 비움 (구조는 특설 대비 유지) export const PATH_PLAYLISTS: Record = {}; -// 두산 베어스 응원가 — 특정 경기가 아니라 두산(OB) 전 경기 공통 적용 -const DOOSAN_TRACKS: Track[] = [ - { title: "잠실의 곰들", artist: "aio2o", src: "/audio/잠실의 곰들.mp3", cover: "/thumbnail/잠실의 곰들.webp" }, - { title: "BEAR ATTACK", artist: "aio2o", src: "/audio/BEAR ATTACK.mp3", cover: "/thumbnail/BEAR ATTACK.webp" }, - { title: "잠실 G-Thang", artist: "aio2o", src: "/audio/잠실 G-Thang.mp3", cover: "/thumbnail/잠실 G-Thang.webp" }, - { title: "Bearz Day", artist: "aio2o", src: "/audio/Bearz Day.mp3", cover: "/thumbnail/Bearz Day.webp" }, -]; - // 경로 → 자동 로드 트랙 목록 — 정확일치(PATH_PLAYLISTS, 월드컵 특설)만. // KBO 오늘의 응원가는 자동재생하지 않고 상세 페이지의 팀별 '응원가 듣기' // 버튼(getTeamSongTracks)으로만 재생한다. @@ -71,15 +63,13 @@ function songToTracks(s: SongOut): Track[] { } // 특정 경기·팀의 오늘의 응원가 트랙 — 상세 페이지 '응원가 듣기' 버튼용. -// 두산(OB)은 상설 응원가를 뒤에 이어붙인다. 곡이 없으면 빈 배열. +// 전 팀 동일 로직(그날 생성곡만). 곡이 없으면 빈 배열. export async function getTeamSongTracks( matchId: string, teamCode: string, ): Promise { const songs = await fetchSongsCached(); - const dyn = songs + return songs .filter((s) => s.matchId === matchId && s.teamCode === teamCode) .flatMap(songToTracks); - const fixed = teamCode === "OB" && matchId.startsWith("KBO_") ? DOOSAN_TRACKS : []; - return [...dyn, ...fixed]; }