원곡찾기 후보 자동 확정: 가수·제목 비교 오류 수정(라틴 악센트 JAŸ-Z=JAY-Z, '및'·with 구분, 앞 The 무시, 'X JAPAN'을 x로 자르던 것), 'Radio Edit/Original Version'은 같은 녹음으로, 'ver.' 뒤 괄호에서 못 잡던 버전 표시 수정. 이미 확정된 곡에서 2곡 이상 확인된 한글/영문 가수 이름(태연=TAEYEON)을 배워 씀(레이블·컴필레이션 제외). 길이 15초 넘게 다르면 자동 확정 안 함. cli reconfirm-youtube(저장된 검색 결과로 다시 비교, --dry-run). 관리자 원곡 찾기 목록에 채널 이름 대신 실제 가수와 확정 안 된 이유('가수 다름: Ashiyane', '길이 40초 차이')
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -41,7 +41,7 @@ interface Detail {
|
||||
aliases: { part: 'title' | 'artist'; alias: string }[];
|
||||
lyrics: { text: string } | null;
|
||||
sources: { source: string; ref: string }[];
|
||||
candidates: { video_id: string; title: string | null; channel: string | null; duration_sec: number | null; score: number; source: string }[];
|
||||
candidates: { video_id: string; title: string | null; channel: string | null; duration_sec: number | null; score: number; source: string; reasons?: string[] }[];
|
||||
}
|
||||
interface Stats {
|
||||
total: number;
|
||||
@@ -790,6 +790,7 @@ export function SongEditor({ id, genres, onClose, onSaved }: { id: number; genre
|
||||
<span className="grow" style={{ textAlign: 'left' }}>
|
||||
{c.title ?? c.video_id}
|
||||
<span className="muted small"> · {c.channel ?? (c.source === 'norabose' ? '노라보세 영상' : '')}</span>
|
||||
{!!c.reasons?.length && <span className="warn-text small"> — {c.reasons.join(' · ')}</span>}
|
||||
</span>
|
||||
<span className="mono small">{mmss(c.duration_sec)}</span>
|
||||
</button>
|
||||
|
||||
@@ -18,6 +18,8 @@ interface Cand {
|
||||
duration_sec: number | null;
|
||||
score: number;
|
||||
source: string;
|
||||
/** Why it was not confirmed automatically ("가수 다름: Ashiyane"); empty when it would be. */
|
||||
reasons: string[];
|
||||
}
|
||||
interface Row {
|
||||
id: number;
|
||||
@@ -33,6 +35,8 @@ interface Row {
|
||||
score: number | null;
|
||||
note: string | null;
|
||||
touched: number;
|
||||
video_artist: string | null;
|
||||
reasons: string[];
|
||||
candidates: Cand[];
|
||||
}
|
||||
interface JobBase {
|
||||
@@ -418,7 +422,8 @@ export function YoutubePage() {
|
||||
{r.youtube_id ? (
|
||||
<>
|
||||
{r.youtube_title ?? r.youtube_id}
|
||||
<div className="muted">{r.youtube_channel ?? ''}</div>
|
||||
<div className="muted">{r.video_artist ? `가수: ${r.video_artist}` : (r.youtube_channel ?? '')}</div>
|
||||
{r.reasons.length > 0 && <div className="warn-text">{r.reasons.join(' · ')}</div>}
|
||||
</>
|
||||
) : r.candidates.length ? (
|
||||
<span className="muted">후보 {r.candidates.length}개 (붙은 영상 없음)</span>
|
||||
@@ -576,6 +581,7 @@ function ReviewPanel({ id, onClose, onEdit, onChanged }: { id: number; onClose:
|
||||
<span className="grow">
|
||||
{c.title ?? c.video_id}
|
||||
<span className="muted small"> · {c.channel ?? (c.source === 'norabose' ? '노라보세 영상' : '')} · {mmss(c.duration_sec)}</span>
|
||||
{c.reasons?.length > 0 && <span className="warn-text small"> — {c.reasons.join(' · ')}</span>}
|
||||
</span>
|
||||
<button type="button" className="btn btn-sm btn-ghost" aria-label={`${c.title ?? c.video_id} 듣기`} onClick={() => setListen(c.video_id)}>
|
||||
▶
|
||||
|
||||
@@ -149,6 +149,9 @@ textarea.input { padding: 10px 14px; min-height: 90px; resize: vertical; }
|
||||
@media (prefers-color-scheme: dark) { :root[data-theme='auto'] .badge.ok, :root[data-theme='auto'] .badge.teal { color: #9fd9de; } }
|
||||
.badge.warn { background: var(--warning-soft); color: #8a5a00; }
|
||||
:root[data-theme='dark'] .badge.warn { color: var(--mustard); }
|
||||
.warn-text { color: #8a5a00; font-size: 0.85em; }
|
||||
:root[data-theme='dark'] .warn-text { color: var(--mustard); }
|
||||
@media (prefers-color-scheme: dark) { :root[data-theme='auto'] .warn-text { color: var(--mustard); } }
|
||||
.chip { min-height: 30px; padding: 0 11px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); font: inherit; font-weight: 650; font-size: 0.87rem; display: inline-flex; align-items: center; gap: 5px; color: var(--text); cursor: pointer; }
|
||||
.chip[aria-pressed='true'] { border: 2px solid var(--ink); background: var(--primary); color: var(--on-primary); }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user