return"INSERT INTO songs VALUES("+song.song_id+",'"+song.title+"',NULL,"+(song.subtitle?"'"+song.subtitle+"'":"NULL")+",NULL,"+(song.difficulty.easy?song.difficulty.easy:"NULL")+","+(song.difficulty.normal?song.difficulty.normal:"NULL")+","+(song.difficulty.hard?song.difficulty.hard:"NULL")+","+(song.difficulty.oni?song.difficulty.oni:"NULL")+","+(song.difficulty.ura?song.difficulty.ura:"NULL")+",1,"+song.category+",'tja',-0.023,NULL,"+(song.preview?song.preview:"NULL")+",NULL,NULL);";
return"INSERT INTO songs VALUES("+song.song_id+",'"+song.title+"',NULL,"+(song.subtitle?"'"+song.subtitle+"'":"NULL")+",NULL,"+(song.difficulty.easy?song.difficulty.easy:"NULL")+","+(song.difficulty.normal?song.difficulty.normal:"NULL")+","+(song.difficulty.hard?song.difficulty.hard:"NULL")+","+(song.difficulty.oni?song.difficulty.oni:"NULL")+","+(song.difficulty.ura?song.difficulty.ura:"NULL")+",1,"+song.category+",'tja',-0.023,NULL,"+(song.preview?song.preview:"NULL")+",NULL,NULL,'"+song.hash+"');";
}
}
//console.log("Reading: " + fpath);
//console.log("Reading: " + fpath);
...
@@ -36,7 +37,11 @@ for (var category_raw of category_array) {
...
@@ -36,7 +37,11 @@ for (var category_raw of category_array) {