File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -138,7 +138,7 @@ export class MusicBrainzAPI extends APIModel {
138138 console . log ( `MDB | api "${ this . apiName } " queried by ID` ) ;
139139
140140 // Fetch release group
141- const groupUrl = `https://musicbrainz.org/ws/2/release-group/${ encodeURIComponent ( id ) } ?inc=releases+artists+tags+ratings+genres+tags &fmt=json` ;
141+ const groupUrl = `https://musicbrainz.org/ws/2/release-group/${ encodeURIComponent ( id ) } ?inc=releases+artists+tags+ratings+genres&fmt=json` ;
142142 const groupResponse = await requestUrl ( {
143143 url : groupUrl ,
144144 headers : {
@@ -189,7 +189,7 @@ export class MusicBrainzAPI extends APIModel {
189189
190190 artists : result [ 'artist-credit' ] . map ( a => a . name ) ,
191191 language : releaseData [ 'text-representation' ] . language ? getLanguageName ( releaseData [ 'text-representation' ] . language ) : 'Unknown' ,
192- genres : result . tags . map ( g => g . name ) ,
192+ genres : result . genres . map ( g => g . name ) ,
193193 subType : result [ 'primary-type' ] ,
194194 trackCount : releaseData . media [ 0 ] [ 'track-count' ] ?? 0 ,
195195 tracks : tracks ,
You can’t perform that action at this time.
0 commit comments