1
0
Code Issues Pull Requests Projects Releases Wiki Activity GitHub Gitee

爬取新数据

This commit is contained in:
程序员小墨 2022-10-18 00:58:53 +08:00
parent 1917b17975
commit dc1e3e4bde

View File

@ -21,8 +21,8 @@ async function fetchAll({ args = {} }) {
${args.order ? `ORDER BY song_id ${args.order}` : ''}
${args.limit ? `LIMIT ${args.limit}` : ''}
`;
// 更新现有数据
sql = `SELECT song_id FROM song WHERE ${whereClause} AND data_version = 1`;
// // 更新现有数据
// sql = `SELECT song_id FROM song WHERE ${whereClause} AND data_version = 1`;
// 测试用
// sql = `SELECT song_id FROM song_artist_relation group by song_id limit 10`;
console.log(sql);
@ -59,7 +59,6 @@ async function fetch({ songIdArray, debug = false }) {
console.error(errors);
return;
}
console.log("请求完成");
// console.log(songResult.body.songs.map(item => JSON.stringify(item)));
let songAlbumRel = [], songArtistRel = [];