Fixed #339
This commit is contained in:
parent
4984a2bfbf
commit
b8432270b6
3 changed files with 6 additions and 5 deletions
3
.github/ISSUE_TEMPLATE/bug.yml
vendored
3
.github/ISSUE_TEMPLATE/bug.yml
vendored
|
|
@ -2,7 +2,8 @@ name: Bug
|
|||
description: File a bug report
|
||||
assignees:
|
||||
- izu-co
|
||||
labels: bug
|
||||
labels:
|
||||
- bug
|
||||
title: "BUG"
|
||||
body:
|
||||
- type: markdown
|
||||
|
|
|
|||
|
|
@ -90,7 +90,7 @@ export default class Crunchy implements ServiceClass {
|
|||
}
|
||||
else if(argv.new){
|
||||
await this.refreshToken();
|
||||
await this.getNewlyAdded();
|
||||
await this.getNewlyAdded(argv.page);
|
||||
}
|
||||
else if(argv.search && argv.search.length > 2){
|
||||
await this.refreshToken();
|
||||
|
|
@ -651,8 +651,8 @@ export default class Crunchy implements ServiceClass {
|
|||
}
|
||||
// calculate pages
|
||||
const itemPad = parseInt(new URL(newlyAddedResults.__href__, domain.api_beta).searchParams.get('start') as string);
|
||||
const pageCur = itemPad > 0 ? Math.ceil(itemPad/5) + 1 : 1;
|
||||
const pageMax = Math.ceil(newlyAddedResults.total/5);
|
||||
const pageCur = itemPad > 0 ? Math.ceil(itemPad/25) + 1 : 1;
|
||||
const pageMax = Math.ceil(newlyAddedResults.total/25);
|
||||
console.log(` [INFO] Total results: ${newlyAddedResults.total} (Page: ${pageCur}/${pageMax})`);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -24,7 +24,7 @@ type BuildTypes = `${'ubuntu'|'windows'|'macos'|'arm'}64`
|
|||
|
||||
async function buildGUI(buildType: BuildTypes) {
|
||||
execSync(`npx electron-builder build --publish=never ${getCommand(buildType)}`, { stdio: [0,1,2] });
|
||||
execSync(`7z a -t7z "../${buildsDir}/multi-downloader-nx-${buildType}-gui.7z" ${getOutputFileName(buildType).map(a => `"${a}"`).join(" ")}`,{
|
||||
execSync(`7z a -t7z "../${buildsDir}/multi-downloader-nx-${buildType}-gui.7z" ${getOutputFileName(buildType).map(a => `"${a}"`).join(' ')}`,{
|
||||
stdio:[0,1,2],
|
||||
cwd: path.join('dist')
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in a new issue