update
This commit is contained in:
@@ -60,7 +60,8 @@ async function fetch({ artistId, debug = false }) {
|
||||
}
|
||||
|
||||
if (html.includes(`<p class="note s-fc3">很抱歉,你要查找的网页找不到</p>`)) {
|
||||
// TODO 最后统一来处理这里 demo: artistId == 30084536
|
||||
let deleteResult = await dbUtils.query('DELETE FROM song_artist_relation WHERE artist_id = ?', [artistId]);
|
||||
console.log(`artist: ${artistId} 不存在,从song_artist_relation表中删除. affectedRows: ${deleteResult.affectedRows}`);
|
||||
return;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user