feat: more album art urls

This commit is contained in:
Mateusz Pstrucha committed 2021-09-29 00:40:39 +02:00
1 parent bc5c9aa29a
commit 899aa3abc2
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -7,7 +7,7 @@ const track = new mongoose.Schema(
artists: [String],
album: {
name: String,
art: String,
art: Array,
year: Number,
},
duration: Number, // milliseconds
+1 -1
View File
@@ -48,7 +48,7 @@ function byId(id) {
artists: body.artists.map((a) => a.name),
album: {
name: body.album.name,
art: body.album.images[0].url,
art: body.album.images,
year: body.album.release_date.slice(0, 4),
},
duration: body.duration_ms,