check album dupes

This commit is contained in:
Evert Prants 2018-10-28 20:17:05 +02:00
parent 16def1ccab
commit c00c18d29f
Signed by: evert
GPG Key ID: 1688DA83D222D0B5

View File

@ -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
} }