check album dupes
This commit is contained in:
parent
16def1ccab
commit
c00c18d29f
@ -36,7 +36,7 @@ function filewalker (dir, done) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async function insertDB (db, track) {
|
async function insertDB (db, track) {
|
||||||
let ensure = await db.get('SELECT * FROM Track WHERE title=? AND artist=?', track.title, track.artist)
|
let ensure = await db.get('SELECT * FROM Track WHERE title=? AND artist=? AND album=?', track.title, track.artist, track.album || '')
|
||||||
if (ensure) {
|
if (ensure) {
|
||||||
return null
|
return null
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user