Added covers and url to music albums
This commit is contained in:
parent
1d76bb8981
commit
75ad6db677
2 changed files with 6 additions and 2 deletions
|
|
@ -49,8 +49,9 @@ export class MusicBrainzAPI extends APIModel {
|
|||
englishTitle: result.title,
|
||||
year: new Date(result['first-release-date']).getFullYear().toString(),
|
||||
dataSource: this.apiName,
|
||||
url: '',
|
||||
url: 'https://musicbrainz.org/release-group/' + result.id,
|
||||
id: result.id,
|
||||
image: 'https://coverartarchive.org/release-group/' + result.id + '/front',
|
||||
|
||||
artists: result['artist-credit'].map((a: any) => a.name),
|
||||
subType: result['primary-type'],
|
||||
|
|
@ -86,8 +87,9 @@ export class MusicBrainzAPI extends APIModel {
|
|||
englishTitle: result.title,
|
||||
year: new Date(result['first-release-date']).getFullYear().toString(),
|
||||
dataSource: this.apiName,
|
||||
url: '',
|
||||
url: 'https://musicbrainz.org/release-group/' + result.id,
|
||||
id: result.id,
|
||||
image: 'https://coverartarchive.org/release-group/' + result.id + '/front',
|
||||
|
||||
artists: result['artist-credit'].map((a: any) => a.name),
|
||||
genres: result.genres.map((g: any) => g.name),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue