feat(aklive2d): updated downloader

This commit is contained in:
Haoyu Xu
2024-10-10 15:02:30 +08:00
parent 34ce23ae7f
commit 18a1d0d4d3
3 changed files with 11 additions and 6 deletions

View File

@@ -124,7 +124,11 @@ export default class CharwordTable {
}
async #download(region) {
return await (new Downloader()).github(`https://api.github.com/repos/${REGION_URLS[region]}/commits?path=${region}/gamedata/excel/charword_table.json`, `https://raw.githubusercontent.com/${REGION_URLS[region]}/master/${region}/gamedata/excel/charword_table.json`, path.join(this.#charwordTablePath, `charword_table_${region}.json`))
return await (new Downloader()).github(
`https://api.github.com/repos/${REGION_URLS[region]}/commits?path=${region}/gamedata/excel/charword_table.json`,
`https://raw.githubusercontent.com/${REGION_URLS[region]}/master/${region}/gamedata/excel/charword_table.json`,
path.join(this.#charwordTablePath, `charword_table_${region}.json`)
)
}
}