Skip to content

Commit

Permalink
提示优化
Browse files Browse the repository at this point in the history
  • Loading branch information
HCLonely committed May 2, 2020
1 parent 3ba1d52 commit 7792ddb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/bangumi-generator.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ module.exports = async function (locals) {
}
let wantWatch=[], watching=[], watched=[];
if(!fs.existsSync(path.resolve(__dirname, '../data/bangumis.json'))){
log.info(`Can't find bilibili bangumi data, please use 'hexo bangumi update' command to get data`);
log.info(`Can't find bilibili bangumi data, please use 'hexo bangumi -u' command to get data`);
}else{
({ wantWatch, watching, watched } = JSON.parse(fs.readFileSync(path.resolve(__dirname, '../data/bangumis.json'))));
log.info(wantWatch.length + watching.length + watched.length + ' bangumis have been loaded');
Expand Down

0 comments on commit 7792ddb

Please sign in to comment.