원곡 찾기 진행 상황 자세히: 상태 배지(찾는 중·검색 실패 대기·N분째 진행 없음·프로세스 없음), 숫자 카드(처리·남은 곡·최근 10분 속도·지난/남은 시간·끝 예상·마지막 처리), 검색 방법, 결과 비율 막대, 방금 처리한 곡 8개, 작업 기록(쉬운 말), 지난 작업, 전체 확정 비율·다음 자동 실행. 끝 예상은 최근 10분 속도로, 마감(--deadline)은 시작 로그에서 읽음

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
EJClaw
2026-10-19 22:09:45 +09:00
parent 8d4e32d737
commit 0c0b822adc
7 changed files with 341 additions and 45 deletions

View File

@@ -45,6 +45,8 @@ export async function matchYoutube(db: Database, ytm: Pick<YtMusic, 'searchSongs
const stats = { matched: 0, candidate: 0, none: 0 };
let tried = 0;
const src = opts.source ?? 'ytmusic';
// 관리자 → 원곡 찾기 reads the deadline back from this line
job.log(`start ${rows.length} songs via ${src}${opts.deadline !== undefined ? ` deadline ${new Date(opts.deadline).toISOString()}` : ''}`);
/**
* Writes the result only if the song is still open for automatic matching: an admin may have saved a video
* while we were waiting on the search. Returns whether the row was changed.