feat: more album art urls
This commit is contained in:
1 parent
bc5c9aa29a
commit
899aa3abc2
2 files changed
+2
-2
No files matched your search
+1
-1
@@ -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
@@ -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,
|
||||
|
||||
Reference in new issue
Block a user