Small fix for musicbrainzapi

Added .jpg to the poster url so the posters can be downloaded by the plugin
This commit is contained in:
ltctceplrm 2025-06-27 16:04:48 +02:00
parent c3df1f582f
commit 74acf7f914

View file

@ -51,7 +51,7 @@ export class MusicBrainzAPI extends APIModel {
dataSource: this.apiName,
url: 'https://musicbrainz.org/release-group/' + result.id,
id: result.id,
image: 'https://coverartarchive.org/release-group/' + result.id + '/front',
image: 'https://coverartarchive.org/release-group/' + result.id + '/front.jpg',
artists: result['artist-credit'].map((a: any) => a.name),
subType: result['primary-type'],
@ -87,7 +87,7 @@ export class MusicBrainzAPI extends APIModel {
dataSource: this.apiName,
url: 'https://musicbrainz.org/release-group/' + result.id,
id: result.id,
image: 'https://coverartarchive.org/release-group/' + result.id + '/front',
image: 'https://coverartarchive.org/release-group/' + result.id + '/front.jpg',
artists: result['artist-credit'].map((a: any) => a.name),
genres: result.genres.map((g: any) => g.name),