Reverted MALAPIManga rename

This commit is contained in:
ltctceplrm 2025-03-08 02:26:15 +01:00
parent 266bb99a31
commit 666ca1e93b
2 changed files with 4 additions and 5 deletions

View file

@ -12,7 +12,7 @@ export class MALAPIManga extends APIModel {
super();
this.plugin = plugin;
this.apiName = 'MALAPIManga';
this.apiName = 'MALAPI Manga';
this.apiDescription = 'A free API for Manga. Some results may take a long time to load.';
this.apiUrl = 'https://jikan.moe/';
this.types = [MediaType.ComicManga];
@ -126,4 +126,7 @@ export class MALAPIManga extends APIModel {
},
});
}
getDisabledMediaTypes(): MediaType[] {
return this.plugin.settings.MALAPIManga_disabledMediaTypes as MediaType[];
}
}

View file

@ -66,10 +66,6 @@ export class PropertyMapper {
obj.type = 'comicManga';
console.debug(`MDB | updated metadata type`, obj.type);
}
if (obj.dataSource === 'MALAPI Manga') {
obj.dataSource = 'MALAPIManga';
console.debug(`MDB | updated metadata dataSource`, obj.type);
}
if (MEDIA_TYPES.contains(obj.type as any)) {
return obj;
}