Skip to content

Commit e09737a

Browse files
committed
Removed logging and fixed error for comicmanga
1 parent daeefb9 commit e09737a

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

src/settings/Settings.ts

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -294,8 +294,8 @@ export class MediaDbSettingTab extends PluginSettingTab {
294294
const apiMediaTypes = {
295295
OMDbAPI: ['movie', 'series', 'game'],
296296
MALAPI: ['movie', 'series'],
297-
MALAPIManga: ['manga'],
298-
ComicVineAPI: ['comic', 'manga'],
297+
MALAPIManga: ['comicManga'],
298+
ComicVineAPI: ['comicManga'],
299299
SteamAPI: ['game'],
300300
MobyGamesAPI: ['game'],
301301
GiantBombAPI: ['game'],
@@ -311,15 +311,9 @@ export class MediaDbSettingTab extends PluginSettingTab {
311311
}
312312
}
313313

314-
// Log the populated map to verify its contents
315-
console.log('mediaTypeApiMap:', mediaTypeApiMap);
316-
317314
// Filter out media types with only one API
318315
const filteredMediaTypes = Array.from(mediaTypeApiMap.entries()).filter(([_, apis]) => apis.length > 1);
319316

320-
// Log the filtered media types to verify the filtering
321-
console.log('filteredMediaTypes:', filteredMediaTypes);
322-
323317
// Dynamically create settings based on the filtered media types and their APIs
324318
for (const [mediaType, apis] of filteredMediaTypes) {
325319
new Setting(containerEl).setName(`Select APIs for ${unCamelCase(mediaType)}`).setHeading();

0 commit comments

Comments
 (0)