mirror of
https://github.com/skidoodle/albert.lol.git
synced 2025-02-15 06:09:15 +01:00
spotify: +release date
This commit is contained in:
parent
81c59ea2a7
commit
24c2049edc
4 changed files with 4 additions and 4 deletions
|
@ -31,7 +31,7 @@ export default async function handler(
|
||||||
album: {
|
album: {
|
||||||
name: song.album.name,
|
name: song.album.name,
|
||||||
image: song.album.image,
|
image: song.album.image,
|
||||||
release: song.album.release,
|
release_date: song.album.release_date,
|
||||||
},
|
},
|
||||||
artists: {
|
artists: {
|
||||||
name: song.artists.name,
|
name: song.artists.name,
|
||||||
|
|
|
@ -3,7 +3,7 @@ interface Album {
|
||||||
images: {
|
images: {
|
||||||
url: string
|
url: string
|
||||||
}[]
|
}[]
|
||||||
release: string[]
|
release_date: string
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface Artist {
|
export interface Artist {
|
||||||
|
|
|
@ -15,7 +15,7 @@ export class SongResultMap {
|
||||||
album: {
|
album: {
|
||||||
name: item.album.name,
|
name: item.album.name,
|
||||||
image: item.album.images[0]?.url,
|
image: item.album.images[0]?.url,
|
||||||
release: item.album.release,
|
release_date: item.album.release_date,
|
||||||
},
|
},
|
||||||
artists: {
|
artists: {
|
||||||
name: item.artists.map((x: Artist) => x.name),
|
name: item.artists.map((x: Artist) => x.name),
|
||||||
|
|
|
@ -3,7 +3,7 @@ export type SongResult = {
|
||||||
album: {
|
album: {
|
||||||
name: string
|
name: string
|
||||||
image?: string
|
image?: string
|
||||||
release: string[]
|
release_date: string
|
||||||
}
|
}
|
||||||
artists: {
|
artists: {
|
||||||
name: string[]
|
name: string[]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue