bugfix
This commit is contained in:
@@ -65,42 +65,37 @@ async function main(args) {
|
||||
switch (args.utils) {
|
||||
case 'song':
|
||||
await songInfoUtils.fetchAll({ args: args });
|
||||
cycle && await sleepUtils.sleep(60 * 1000);
|
||||
await sleepUtils.sleep(60 * 1000);
|
||||
break;
|
||||
case 'album':
|
||||
await albumInfoUtils.fetchAll({ args: args });
|
||||
cycle && await sleepUtils.sleep(30 * 1000);
|
||||
await sleepUtils.sleep(30 * 1000);
|
||||
break;
|
||||
case 'artist':
|
||||
await artistInfoUtils.fetchAll({ args: args });
|
||||
cycle && await sleepUtils.sleep(30 * 1000);
|
||||
await sleepUtils.sleep(30 * 1000);
|
||||
break;
|
||||
case 'lyric':
|
||||
case 'lyric': // 执行完就退出
|
||||
await lyricInfoUtils.fetchAll({ args: args });
|
||||
cycle && await sleepUtils.sleep(30 * 1000);
|
||||
// await sleepUtils.sleep(30 * 1000);
|
||||
break;
|
||||
case 'comment':
|
||||
case 'comment': // 执行完就退出
|
||||
await commentUtils.fetchAll({ args: args });
|
||||
cycle && await sleepUtils.sleep(30 * 1000);
|
||||
// await sleepUtils.sleep(30 * 1000);
|
||||
break;
|
||||
case 'playlist':
|
||||
case 'playlist': // 执行完就退出
|
||||
await playlistUtils.fetchTop({ args: args });
|
||||
process.exit(0);
|
||||
break;
|
||||
|
||||
case 'assistant':
|
||||
await assistantUtils.updateWaitTable();
|
||||
cycle && await sleepUtils.sleep(20 * 1000);
|
||||
await sleepUtils.sleep(20 * 1000);
|
||||
break;
|
||||
default:
|
||||
console.log("utils参数不匹配,退出");
|
||||
return;
|
||||
}
|
||||
|
||||
if (!cycle) {
|
||||
console.log("完成!");
|
||||
process.exit(0);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user