|
|
|
@ -46,13 +46,13 @@ function getSong(res) {
|
|
|
|
|
throw err; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
console.log('Retrieving artist for song...') |
|
|
|
|
console.log('Retrieving artist for song...'); |
|
|
|
|
db.get('SELECT * FROM artists WHERE id = ' + song.artist, function (err, artist) { |
|
|
|
|
if (err) { |
|
|
|
|
throw err; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
console.log('Retrieving lyrics for song... ') |
|
|
|
|
console.log('Retrieving lyrics for song... '); |
|
|
|
|
db.get('SELECT * FROM lyrics WHERE song = ' + song.id, function (err, lyrics) { |
|
|
|
|
if (err) { |
|
|
|
|
throw err; |
|
|
|
|