Added total duration for a music release/album
This commit is contained in:
parent
4c7ae08f91
commit
674b775b6b
5 changed files with 5070 additions and 3 deletions
|
|
@ -12,6 +12,7 @@ export class MusicReleaseModel extends MediaTypeModel {
|
|||
image: string;
|
||||
rating: number;
|
||||
releaseDate: string;
|
||||
albumDuration: string;
|
||||
trackCount: number;
|
||||
tracks: {
|
||||
number: number;
|
||||
|
|
@ -44,6 +45,7 @@ export class MusicReleaseModel extends MediaTypeModel {
|
|||
}
|
||||
|
||||
this.type = this.getMediaType();
|
||||
this.albumDuration = obj.albumDuration ?? '0:00';
|
||||
this.trackCount = obj.trackCount ?? 0;
|
||||
this.tracks = obj.tracks ?? [];
|
||||
this.language = obj.language ?? '';
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue