Skip to content

Commit

Permalink
修复默认进度条配置
Browse files Browse the repository at this point in the history
  • Loading branch information
HCLonely committed Aug 4, 2020
1 parent 8e79ae5 commit 56da9e6
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ hexo.extend.console.register('bangumi', 'Generate pages of bilibili bangumis for
log.info('Bangumis data has been deleted');
}
} else if (args.u) {
var _this$config2;
var _this$config2, _this$config$bangumi$;

if (!(this === null || this === void 0 ? void 0 : (_this$config2 = this.config) === null || _this$config2 === void 0 ? void 0 : _this$config2.bangumi)) {
log.info('Please add config to _config.yml');
Expand All @@ -71,7 +71,7 @@ hexo.extend.console.register('bangumi', 'Generate pages of bilibili bangumis for
return;
}

saveBangumiData(this.config.bangumi.vmid, this.config.bangumi.webp, this.config.bangumi.progress);
saveBangumiData(this.config.bangumi.vmid, this.config.bangumi.webp, (_this$config$bangumi$ = this.config.bangumi.progress) !== null && _this$config$bangumi$ !== void 0 ? _this$config$bangumi$ : true);
} else {
log.info('Unknown command, please use "hexo bangumi -h" to see the available commands');
}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "hexo-bilibili-bangumi",
"version": "1.4.0",
"version": "1.4.1",
"description": "hexo bilibili番剧页",
"main": "index.js",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ hexo.extend.console.register('bangumi', 'Generate pages of bilibili bangumis for
log.info('Please add vmid to _config.yml')
return
}
saveBangumiData(this.config.bangumi.vmid, this.config.bangumi.webp, this.config.bangumi.progress)
saveBangumiData(this.config.bangumi.vmid, this.config.bangumi.webp, this.config.bangumi.progress ?? true)
} else {
log.info('Unknown command, please use "hexo bangumi -h" to see the available commands')
}
Expand Down

0 comments on commit 56da9e6

Please sign in to comment.