File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -49,8 +49,9 @@ export class MusicBrainzAPI extends APIModel {
4949 englishTitle : result . title ,
5050 year : new Date ( result [ 'first-release-date' ] ) . getFullYear ( ) . toString ( ) ,
5151 dataSource : this . apiName ,
52- url : '' ,
52+ url : 'https://musicbrainz.org/release-group/' + result . id ,
5353 id : result . id ,
54+ image : 'https://coverartarchive.org/release-group/' + result . id + '/front' ,
5455
5556 artists : result [ 'artist-credit' ] . map ( ( a : any ) => a . name ) ,
5657 subType : result [ 'primary-type' ] ,
@@ -86,8 +87,9 @@ export class MusicBrainzAPI extends APIModel {
8687 englishTitle : result . title ,
8788 year : new Date ( result [ 'first-release-date' ] ) . getFullYear ( ) . toString ( ) ,
8889 dataSource : this . apiName ,
89- url : '' ,
90+ url : 'https://musicbrainz.org/release-group/' + result . id ,
9091 id : result . id ,
92+ image : 'https://coverartarchive.org/release-group/' + result . id + '/front' ,
9193
9294 artists : result [ 'artist-credit' ] . map ( ( a : any ) => a . name ) ,
9395 genres : result . genres . map ( ( g : any ) => g . name ) ,
Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ export class MusicReleaseModel extends MediaTypeModel {
1111 dataSource : string ;
1212 url : string ;
1313 id : string ;
14+ image : string ;
1415
1516 genres : string [ ] ;
1617 artists : string [ ] ;
@@ -25,6 +26,7 @@ export class MusicReleaseModel extends MediaTypeModel {
2526
2627 this . genres = undefined ;
2728 this . artists = undefined ;
29+ this . image = undefined ;
2830 this . rating = undefined ;
2931 this . userData = {
3032 personalRating : undefined ,
You can’t perform that action at this time.
0 commit comments