diff --git a/netease_music/src/getInfo/albumInfoUtils.js b/netease_music/src/getInfo/albumInfoUtils.js index 96535bc..5974094 100644 --- a/netease_music/src/getInfo/albumInfoUtils.js +++ b/netease_music/src/getInfo/albumInfoUtils.js @@ -30,7 +30,7 @@ async function fetchAll({ isUpdate = false }) { console.log("start fetching albums ...") var albumIds = await dbUtils.query(isUpdate ? `SELECT DISTINCT album_id FROM album WHERE (full_description = '' or full_description is null) and description like '%专辑《%》,简介:%' and description not regexp '^.*?专辑《.*?》,简介:[:space:]*?。,更多.*$'` - : `SELECT DISTINCT album_id FROM song_album_relation WHERE album_id NOT IN ( SELECT DISTINCT album_id FROM album )`, []); + : `SELECT DISTINCT album_id FROM song_album_relation WHERE album_id NOT IN ( SELECT album_id FROM album )`, []); albumIds = albumIds.map(item => item.album_id); for (let i = 0; i < albumIds.length; i++) { await global.checkIsExit(); diff --git a/netease_music/src/getInfo/artistInfoUtils.js b/netease_music/src/getInfo/artistInfoUtils.js index 8b3e7a1..43ba0ff 100644 --- a/netease_music/src/getInfo/artistInfoUtils.js +++ b/netease_music/src/getInfo/artistInfoUtils.js @@ -25,7 +25,7 @@ async function getFromDatabase({ artistId }) { async function fetchAll() { console.log("start fetching artists ...") var artistIds = await dbUtils.query(` - SELECT DISTINCT artist_id FROM song_artist_relation WHERE artist_id NOT IN ( SELECT DISTINCT artist_id FROM artist ) + SELECT DISTINCT artist_id FROM song_artist_relation WHERE artist_id NOT IN ( SELECT artist_id FROM artist ) `, []); artistIds = artistIds.map(item => item.artist_id); for (let i = 0; i < artistIds.length; i++) { diff --git a/netease_music/src/getInfo/lyricInfoUtils.js b/netease_music/src/getInfo/lyricInfoUtils.js index 5826fed..7c815d6 100644 --- a/netease_music/src/getInfo/lyricInfoUtils.js +++ b/netease_music/src/getInfo/lyricInfoUtils.js @@ -10,7 +10,7 @@ const dbUtils = global.dbUtils; async function fetchAll() { console.log("start fetching lyrics ..."); var songIds = await dbUtils.query(` - SELECT DISTINCT song_id FROM song WHERE song_id NOT IN ( SELECT DISTINCT song_id FROM lyric ) + SELECT DISTINCT song_id FROM song WHERE song_id NOT IN ( SELECT song_id FROM lyric ) `, []); songIds = songIds.map(song => song.song_id); for (let i = 0; i < songIds.length; i++) {