Add tracks to musicbrainz API
This commit is contained in:
parent
1cd1b63f15
commit
d5c9faa0a7
3 changed files with 62 additions and 7 deletions
|
|
@ -11,6 +11,12 @@ export class MusicReleaseModel extends MediaTypeModel {
|
|||
image: string;
|
||||
rating: number;
|
||||
releaseDate: string;
|
||||
tracks: {
|
||||
number: number;
|
||||
title: string;
|
||||
duration: string;
|
||||
featuredArtists: string[];
|
||||
}[];
|
||||
|
||||
userData: {
|
||||
personalRating: number;
|
||||
|
|
@ -36,6 +42,7 @@ export class MusicReleaseModel extends MediaTypeModel {
|
|||
}
|
||||
|
||||
this.type = this.getMediaType();
|
||||
this.tracks = obj.tracks ?? [];
|
||||
}
|
||||
|
||||
getTags(): string[] {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue