diff --git a/src/api/apis/MALAPIManga.ts b/src/api/apis/MALAPIManga.ts index 77a8416..138fc8d 100644 --- a/src/api/apis/MALAPIManga.ts +++ b/src/api/apis/MALAPIManga.ts @@ -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[]; + } } diff --git a/src/settings/PropertyMapper.ts b/src/settings/PropertyMapper.ts index 9a46d27..e3be2c5 100644 --- a/src/settings/PropertyMapper.ts +++ b/src/settings/PropertyMapper.ts @@ -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; }