feat: show release year instead of type on top release cards
Added date field to LBTopReleaseGroup from the LB API's release_group.date. Card now displays the 4-digit year extracted via extractYear() instead of the release type.
This commit is contained in:
@@ -39,6 +39,7 @@ export namespace explore {
|
||||
title: string;
|
||||
artistName: string;
|
||||
type: string;
|
||||
date: string;
|
||||
totalListenCount: number;
|
||||
|
||||
static createFrom(source: any = {}) {
|
||||
@@ -51,6 +52,7 @@ export namespace explore {
|
||||
this.title = source["title"];
|
||||
this.artistName = source["artistName"];
|
||||
this.type = source["type"];
|
||||
this.date = source["date"];
|
||||
this.totalListenCount = source["totalListenCount"];
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user