1
0
Code Issues Pull Requests Projects Releases Wiki Activity GitHub Gitee
This commit is contained in:
2023-06-04 14:24:21 +08:00
parent ff4532f18b
commit 2b571c1e17
4 changed files with 23 additions and 25 deletions

View File

@@ -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);
}
}
}