Skip to content

Commit 666ca1e

Browse files
committed
Reverted MALAPIManga rename
1 parent 266bb99 commit 666ca1e

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

src/api/apis/MALAPIManga.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ export class MALAPIManga extends APIModel {
1212
super();
1313

1414
this.plugin = plugin;
15-
this.apiName = 'MALAPIManga';
15+
this.apiName = 'MALAPI Manga';
1616
this.apiDescription = 'A free API for Manga. Some results may take a long time to load.';
1717
this.apiUrl = 'https://jikan.moe/';
1818
this.types = [MediaType.ComicManga];
@@ -126,4 +126,7 @@ export class MALAPIManga extends APIModel {
126126
},
127127
});
128128
}
129+
getDisabledMediaTypes(): MediaType[] {
130+
return this.plugin.settings.MALAPIManga_disabledMediaTypes as MediaType[];
131+
}
129132
}

src/settings/PropertyMapper.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,10 +66,6 @@ export class PropertyMapper {
6666
obj.type = 'comicManga';
6767
console.debug(`MDB | updated metadata type`, obj.type);
6868
}
69-
if (obj.dataSource === 'MALAPI Manga') {
70-
obj.dataSource = 'MALAPIManga';
71-
console.debug(`MDB | updated metadata dataSource`, obj.type);
72-
}
7369
if (MEDIA_TYPES.contains(obj.type as any)) {
7470
return obj;
7571
}

0 commit comments

Comments
 (0)