mirror of
https://github.com/zkldi/Tachi.git
synced 2026-10-04 04:48:15 +03:00
Fix more dups
This commit is contained in:
@@ -16446,7 +16446,7 @@
|
||||
},
|
||||
{
|
||||
"id": 1496,
|
||||
"title": "cat's scat",
|
||||
"title": "cat's scat (URA)",
|
||||
"artist": "Q-Mex",
|
||||
"searchTerms": [],
|
||||
"altTitles": [],
|
||||
@@ -16479,7 +16479,7 @@
|
||||
},
|
||||
{
|
||||
"id": 1499,
|
||||
"title": "西新宿清掃曲",
|
||||
"title": "西新宿清掃曲 (URA)",
|
||||
"artist": "サイモンマン",
|
||||
"searchTerms": [],
|
||||
"altTitles": [],
|
||||
@@ -16490,7 +16490,7 @@
|
||||
},
|
||||
{
|
||||
"id": 1500,
|
||||
"title": "Denpasar",
|
||||
"title": "Denpasar (URA)",
|
||||
"artist": "good-cool",
|
||||
"searchTerms": [],
|
||||
"altTitles": [],
|
||||
@@ -16501,7 +16501,7 @@
|
||||
},
|
||||
{
|
||||
"id": 1501,
|
||||
"title": "男々道",
|
||||
"title": "男々道 (URA)",
|
||||
"artist": "Des-ROW・組",
|
||||
"searchTerms": [],
|
||||
"altTitles": [],
|
||||
@@ -17194,13 +17194,13 @@
|
||||
},
|
||||
{
|
||||
"id": 1564,
|
||||
"title": "Popperz Chronicle",
|
||||
"title": "Popperz Chronicle (UPPER)",
|
||||
"artist": "pop'n masters",
|
||||
"searchTerms": [],
|
||||
"altTitles": [],
|
||||
"data": {
|
||||
"displayVersion": null,
|
||||
"genre": "Popperz Chronicle"
|
||||
"genre": "Popperz Chronicle (UPPER)"
|
||||
}
|
||||
},
|
||||
{
|
||||
|
||||
@@ -25,8 +25,10 @@ const charts = [];
|
||||
let songID = 1;
|
||||
for (const song of data) {
|
||||
const isUpper = song.charts.some(k => k !== null && k.filename.startsWith("exx"));
|
||||
const isUra = song.charts.some(k => k !== null && k.filename.endsWith("_ura2"));
|
||||
|
||||
let title = isUpper ? `${song.title} (UPPER)` : song.title;
|
||||
title = isUra ? `${title} (URA)` : title;
|
||||
|
||||
songs.push({
|
||||
id: songID,
|
||||
@@ -70,5 +72,5 @@ for (const song of data) {
|
||||
songID++;
|
||||
}
|
||||
|
||||
fs.writeFileSync(path.join(__dirname, "../../collections/charts-popn.json"), JSON.stringify(charts, null, "\t"));
|
||||
// fs.writeFileSync(path.join(__dirname, "../../collections/charts-popn.json"), JSON.stringify(charts, null, "\t"));
|
||||
fs.writeFileSync(path.join(__dirname, "../../collections/songs-popn.json"), JSON.stringify(songs, null, "\t"));
|
||||
|
||||
Reference in New Issue
Block a user