Merged comic book models with manga models into comicmanga model

Updated both MALAPI Manga and ComicVine API to be more consistent with eachother.
This commit is contained in:
ltctceplrm 2025-02-11 21:51:08 +01:00
parent 01b56c9be5
commit a07e549ea4
8 changed files with 128 additions and 93 deletions

View file

@ -62,7 +62,12 @@ export class PropertyMapper {
return obj;
}
if (MEDIA_TYPES.contains(obj.type as any)) {
if (obj.type === "manga") {
obj.type = "comicManga";
console.debug(`MDB | updated metadata type`, obj.type);
}
if (MEDIA_TYPES.contains(obj.type as any)) {
return obj;
}