diff --git a/libs/music.js b/libs/music.js index e97c484..817682e 100644 --- a/libs/music.js +++ b/libs/music.js @@ -8,13 +8,12 @@ export default class Music { #sharedPath = path.join(__projectRoot, __config.folder.operator, __config.folder.share) async process() { - + await this.#download() } async #download() { const metaTable = await this.#downloader.github(`https://api.github.com/repos/Kengxxiao/ArknightsGameData/commits?path=zh_CN/gamedata/excel/display_meta_table.json`, `https://raw.githubusercontent.com/Kengxxiao/ArknightsGameData/master/zh_CN/gamedata/excel/display_meta_table.json`, path.join(this.#sharedPath, `display_meta_table.json`)) const audioDataTable = await this.#downloader.github(`https://api.github.com/repos/Kengxxiao/ArknightsGameData/commits?path=zh_CN/gamedata/excel/audio_data.json`, `https://raw.githubusercontent.com/Kengxxiao/ArknightsGameData/master/zh_CN/gamedata/excel/audio_data.json`, path.join(this.#sharedPath, `audio_data.json`)) - console.log(metaTable, audioDataTable) } copy() { @@ -32,4 +31,4 @@ export default class Music { musicMapping, } } -} \ No newline at end of file +}