Changed publishers mapping for comic books

the publisher field on comic vine isn't an array
This commit is contained in:
ltctceplrm 2025-02-11 19:42:28 +01:00
parent 4eee3704e8
commit 01b56c9be5
2 changed files with 2 additions and 2 deletions

View file

@ -82,7 +82,7 @@ export class ComicVineAPI extends APIModel {
image: result.image?.original_url ?? '',
released: true,
publishers: result.publisher.map((x: any) => x.name) ?? [],
publishers: result.publisher.name ?? [],
publishedFrom: result.start_year ?? 'unknown',
publishedTo: 'unknown',
status: result.status,

View file

@ -62,6 +62,6 @@ export class ComicBookModel extends MediaTypeModel {
}
getSummary(): string {
return this.englishTitle + ' (' + this.year + ') - ' + this.publisher;
return this.englishTitle + ' (' + this.year + ') - ' + this.publishers;
}
}