add star album
This commit is contained in:
@@ -215,6 +215,14 @@ export class API {
|
||||
}
|
||||
}
|
||||
|
||||
starAlbum(id: string) {
|
||||
return this.star('album', id)
|
||||
}
|
||||
|
||||
unstarAlbum(id: string) {
|
||||
return this.unstar('album', id)
|
||||
}
|
||||
|
||||
async star(type: 'track' | 'album' | 'artist', id: string) {
|
||||
const params = {
|
||||
id: type === 'track' ? id : undefined,
|
||||
|
||||
@@ -7,6 +7,7 @@
|
||||
BIcon,
|
||||
BIconCardText,
|
||||
BIconMusicNoteList,
|
||||
BIconStar,
|
||||
BIconStarFill,
|
||||
BIconCollectionFill,
|
||||
BIconList,
|
||||
@@ -27,6 +28,7 @@
|
||||
BIcon,
|
||||
BIconCardText,
|
||||
BIconMusicNoteList,
|
||||
BIconStar,
|
||||
BIconStarFill,
|
||||
BIconCollectionFill,
|
||||
BIconList,
|
||||
|
||||
Reference in New Issue
Block a user