mirror of
https://github.com/PretendoNetwork/BOSS.git
synced 2026-10-20 14:37:11 -05:00
chore: Update pretendonetwork/boss-crypto to 1.2.2
Plus some other fixes.
This commit is contained in:
@@ -84,7 +84,8 @@ const downloadCmd = new Command('download')
|
||||
const ctx = getCliContext();
|
||||
const { files } = await ctx.grpc.listFilesCTR({
|
||||
bossAppId: appId,
|
||||
taskId: taskId
|
||||
taskId: taskId,
|
||||
any: true
|
||||
});
|
||||
const file = files.find(v => v.dataId === dataId);
|
||||
if (!file) {
|
||||
@@ -94,7 +95,7 @@ const downloadCmd = new Command('download')
|
||||
|
||||
const npdl = ctx.getNpdlUrl();
|
||||
const country = file.supportedCountries.length > 0 ? '/' + file.supportedCountries[0] : '';
|
||||
const language = file.supportedLanguages.length > 0 ? '/' + file.supportedCountries[0] : '';
|
||||
const language = file.supportedLanguages.length > 0 ? '/' + file.supportedLanguages[0] : '';
|
||||
const { body, statusCode } = await request(`${npdl.url}/p01/nsa/${file.bossAppId}/${file.taskId}${country}${language}/${file.name}`, {
|
||||
headers: {
|
||||
Host: npdl.host
|
||||
|
||||
@@ -87,7 +87,8 @@ const downloadCmd = new Command('download')
|
||||
const ctx = getCliContext();
|
||||
const { files } = await ctx.grpc.listFilesWUP({
|
||||
bossAppId: appId,
|
||||
taskId: taskId
|
||||
taskId: taskId,
|
||||
any: true
|
||||
});
|
||||
const file = files.find(v => v.dataId === dataId);
|
||||
if (!file) {
|
||||
|
||||
Reference in New Issue
Block a user