update
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user