10단계 다듬기: axe 접근성 검사(첫 화면·대기실·게임·정답 공개·결과·관리자, PC/휴대폰 × 밝은/어두운 화면) 위반 0으로 고침(배지·정답 글자 대비, 게임 화면 main·방 정보 영역, 제목 순서, 별 아이콘), 100명 부하 시험 + TJ는 최근 2년만, 멜론 곡 정보는 가사·연도 없는 곡부터
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -133,7 +133,8 @@ export function chartSpecs(opts: { from?: number; to?: number; sources?: string[
|
||||
...(await sleep(2500).then(async () => parseGenie(await get(`https://www.genie.co.kr/chart/musicHistory?year=${y}&category=0&pg=2`)))),
|
||||
],
|
||||
});
|
||||
if (want('tj-ye') && y >= 2008)
|
||||
// TJ's API only answers for about the last two years (older ranges → resultCode 98).
|
||||
if (want('tj-ye') && y >= 2024)
|
||||
out.push({
|
||||
source: 'tj',
|
||||
chart: 'year',
|
||||
@@ -284,7 +285,7 @@ export async function fillMelonDetails(db: Database, opts: { limit?: number; del
|
||||
.query<{ id: number; melon_id: number; genres_source: string | null }, [number]>(
|
||||
`SELECT s.id, s.melon_id, s.genres_source FROM songs s WHERE s.deleted_at IS NULL AND s.melon_id IS NOT NULL
|
||||
AND NOT EXISTS (SELECT 1 FROM signals g WHERE g.song_id = s.id AND g.kind = 'melon_detail')
|
||||
ORDER BY (s.youtube_status = 'matched') DESC, s.id LIMIT ?`,
|
||||
ORDER BY NOT EXISTS (SELECT 1 FROM lyrics y WHERE y.song_id = s.id) DESC, (s.year IS NULL) DESC, (s.youtube_status = 'matched') DESC, s.id LIMIT ?`,
|
||||
)
|
||||
.all(opts.limit ?? 500);
|
||||
const job = new Job(db, 'melon-detail', rows.length);
|
||||
|
||||
Reference in New Issue
Block a user