1
0
Code Issues Pull Requests Projects Releases Wiki Activity GitHub Gitee
This commit is contained in:
2022-10-03 14:32:04 +08:00
parent e778b455ed
commit b4d63489c3
5 changed files with 21 additions and 7 deletions

View File

@@ -21,7 +21,10 @@ async function fetchAll() {
// 首先查询有无正在爬取中的记录
var songIds = await dbUtils.query(`
SELECT song_id FROM comment_progress WHERE current_status != 2
-- 本机
SELECT song_id FROM comment_progress WHERE current_status != 2 AND song_id < 30000000 ORDER BY current_status DESC
-- 服务器
-- SELECT song_id FROM comment_progress WHERE current_status != 2 AND song_id > 30000000 ORDER BY current_status DESC
`, []);
songIds = songIds.map(item => item.song_id);
@@ -184,7 +187,7 @@ async function fetch({ songId, debug = false }) {
current_status: progress.currentStatus,
total: progress.total,
}, songId]);
await sleepUtils.sleep(global.sleepTime);
// await sleepUtils.sleep(global.sleepTime);
}
// return commentInfo;
}