Renamed publisher to publishers and added array

Also added publisher/serialization support for MALAPI MAnga
This commit is contained in:
ltctceplrm 2025-02-11 19:20:55 +01:00
parent f3e0b32bb8
commit 4eee3704e8
4 changed files with 7 additions and 4 deletions

View file

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