제작된 퀴즈 4단계: 플레이리스트 가져오기(유튜브·유튜브 뮤직·스포티파이 주소를 .6 Lavalink로). 서버 DB 곡(같은 영상·같은 제목+가수)은 그 곡, 유튜브는 그 영상(Official MV 등 제목 정리, 퍼가기 막힌 영상 표시), 스포티파이는 유튜브 뮤직 검색을 원곡 찾기 기준으로(애매하면 확인 필요). 백그라운드 작업+진행률, 결과에서 골라 뒤에 추가 또는 목록 바꾸기(이미 있는 곡 제외). LAVALINK_URL·LAVALINK_PW 환경변수
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -8,7 +8,7 @@ import { notConfidentReasons, scoreResult, type ArtistAliases } from '../collect
|
||||
|
||||
let aliasCache: { db: Database; at: number; map: ArtistAliases } | null = null;
|
||||
/** Learnt artist names change only when songs get confirmed: re-learn at most every 10 minutes. */
|
||||
function aliasesOf(db: Database, now = Date.now()): ArtistAliases {
|
||||
export function aliasesOf(db: Database, now = Date.now()): ArtistAliases {
|
||||
if (!aliasCache || aliasCache.db !== db || now - aliasCache.at > 600_000) aliasCache = { db, at: now, map: learnArtistAliases(db) };
|
||||
return aliasCache.map;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user