update
This commit is contained in:
parent
95065be3d7
commit
35d911a1f9
@ -94,6 +94,9 @@ async function fetch({ songIdArray, debug = false }) {
|
|||||||
// console.log("songAlbumRel, songArtistRel", songAlbumRel, songArtistRel);
|
// console.log("songAlbumRel, songArtistRel", songAlbumRel, songArtistRel);
|
||||||
// console.log("songInfoList", songInfoList);
|
// console.log("songInfoList", songInfoList);
|
||||||
|
|
||||||
|
if (songInfoList.length == 0) return;
|
||||||
|
|
||||||
|
if (songAlbumRel.length > 0)
|
||||||
await dbUtils.query('INSERT IGNORE INTO song_album_relation (song_id, album_id) VALUES ?', [songAlbumRel]);
|
await dbUtils.query('INSERT IGNORE INTO song_album_relation (song_id, album_id) VALUES ?', [songAlbumRel]);
|
||||||
await dbUtils.query('INSERT IGNORE INTO song_artist_relation (song_id, artist_id) VALUES ?', [songArtistRel]);
|
await dbUtils.query('INSERT IGNORE INTO song_artist_relation (song_id, artist_id) VALUES ?', [songArtistRel]);
|
||||||
await dbUtils.query(`
|
await dbUtils.query(`
|
||||||
|
Loading…
x
Reference in New Issue
Block a user