응원가 공유·플레이어 문구 '오늘의' → 제작일 표기 (예: 8월 28일 OO 응원가)
songs API에 dateKst(경기일) 추가, OG 공유 제목·프론트 shareText·artist에 적용 — 매일 갱신되는 콘텐츠임을 드러낸다 Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
1 parent
df367070ce
commit
bb930cc59f
4 files changed
+18
-6
No files matched your search
@@ -58,7 +58,10 @@ def _team_label(code: str | None) -> str:
|
||||
async def song_share(
|
||||
match_id: str, team_code: str, db: AsyncSession = Depends(get_db)
|
||||
) -> HTMLResponse:
|
||||
"""응원가 공유 OG — '오늘의 OO 응원가' 제목 + Suno 앨범아트 썸네일."""
|
||||
"""응원가 공유 OG — '8월 28일 OO 응원가' 제목 + Suno 앨범아트 썸네일.
|
||||
|
||||
제목의 날짜는 제작일(경기일 KST) — 매일 갱신되는 콘텐츠임을 드러낸다.
|
||||
"""
|
||||
s = (
|
||||
await db.execute(
|
||||
select(Song).where(Song.match_id == match_id, Song.team_code == team_code)
|
||||
@@ -66,9 +69,10 @@ async def song_share(
|
||||
).scalar_one_or_none()
|
||||
team = (s.team_name if s else "") or _team_label(team_code) or team_code
|
||||
song_title = (s.title if s else "") or f"{team} 응원가"
|
||||
title = f"오늘의 {team} 응원가 — {song_title}"
|
||||
day = f"{s.date_kst.month}월 {s.date_kst.day}일" if s and s.date_kst else "오늘의"
|
||||
title = f"{day} {team} 응원가 — {song_title}"
|
||||
desc = (
|
||||
"AI가 오늘 경기(순위·선발 라인업·전날 결과)를 반영해 만든 응원가. "
|
||||
"AI가 경기 당일(순위·선발 라인업·전날 결과)을 반영해 매일 새로 만드는 응원가. "
|
||||
"듣고 나서 GPT·Claude·Gemini와 승부예측도 겨뤄보세요!"
|
||||
)
|
||||
|
||||
|
||||
Reference in new issue
Block a user