Commit 4a3dc077 authored by nanahira's avatar nanahira

handle

parent 49122e77
...@@ -25,11 +25,15 @@ const category_array = fs.readdirSync(fpath); ...@@ -25,11 +25,15 @@ const category_array = fs.readdirSync(fpath);
for (var category_raw of category_array) { for (var category_raw of category_array) {
const category = parseInt(category_raw); const category = parseInt(category_raw);
if (isNaN(category))
continue;
const category_path = fpath + "/" + category; const category_path = fpath + "/" + category;
//console.log("Reading: " + category_path); //console.log("Reading: " + category_path);
const songs = fs.readdirSync(category_path); const songs = fs.readdirSync(category_path);
for (var song_raw of songs) { for (var song_raw of songs) {
const song_id = parseInt(song_raw); const song_id = parseInt(song_raw);
if (isNaN(song_id))
continue;
const tja_path = category_path + "/" + song_id + "/main.tja" const tja_path = category_path + "/" + song_id + "/main.tja"
//console.log("Reading: " + tja_path); //console.log("Reading: " + tja_path);
const tja_text = fs.readFileSync(tja_path, { encoding: "utf8" }) const tja_text = fs.readFileSync(tja_path, { encoding: "utf8" })
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment