feat: review all remote HolodoriDB changes before collection
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
import { readHolodoriDbTable } from './holodoridb-source.mjs';
|
||||
import { readFile, writeFile } from 'node:fs/promises';
|
||||
import path from 'node:path';
|
||||
|
||||
const projectRoot = path.resolve(path.dirname(new URL(import.meta.url).pathname.replace(/^\/(?=[A-Za-z]:)/, '')), '..');
|
||||
const catalogPath = path.join(projectRoot, 'src/lib/data/exact-chart-catalog.json');
|
||||
const musicPath = path.join(projectRoot, 'data/raw/holodoridb/kor/Music.json');
|
||||
const musicRows = JSON.parse(await readFile(musicPath, 'utf8'));
|
||||
const musicRows = readHolodoriDbTable('kor', 'Music.json');
|
||||
const musicById = new Map(musicRows.map((row) => [row.data?.id ?? row.id, row.data ?? row]));
|
||||
const singerMetadataOverrides = {
|
||||
m0334: { singerType: 'solo', singerCharacterIds: ['chr-04001'] }
|
||||
|
||||
Reference in New Issue
Block a user