@kadaliao/geektime-downloader 1.0.1 → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/download.js +2 -2
- package/package.json +1 -1
package/download.js
CHANGED
|
@@ -950,7 +950,7 @@ async function main(options) {
|
|
|
950
950
|
}
|
|
951
951
|
|
|
952
952
|
// 并发下载
|
|
953
|
-
const concurrency = parseInt(options.concurrency) ||
|
|
953
|
+
const concurrency = parseInt(options.concurrency) || 5;
|
|
954
954
|
if (concurrency > 1) {
|
|
955
955
|
console.log(chalk.gray(`📊 并发数: ${concurrency}\n`));
|
|
956
956
|
}
|
|
@@ -1019,7 +1019,7 @@ program
|
|
|
1019
1019
|
.option('-o, --output <dir>', '输出目录', './downloads')
|
|
1020
1020
|
.option('--headless <boolean>', '无头模式', true)
|
|
1021
1021
|
.option('--delay <ms>', '每篇文章之间的延迟(ms)', '2000')
|
|
1022
|
-
.option('--concurrency <number>', '并发下载数量', '
|
|
1022
|
+
.option('--concurrency <number>', '并发下载数量', '5')
|
|
1023
1023
|
.option('--dry-run', '预览模式,只显示文章列表')
|
|
1024
1024
|
.option('--limit <number>', '限制下载数量(用于测试)')
|
|
1025
1025
|
.option('--no-merge', '禁用PDF合并(默认会合并所有文章为一个PDF)')
|