From d1affcdcb67d37b42b3aa054a268e5c5d263abf1 Mon Sep 17 00:00:00 2001 From: ltctceplrm <14954927+ltctceplrm@users.noreply.github.com> Date: Wed, 31 Jan 2024 22:38:06 +0100 Subject: [PATCH] Added temporary way to test media type as "game" --- src/api/APIManager.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/api/APIManager.ts b/src/api/APIManager.ts index c7821b0..1e3c8cc 100644 --- a/src/api/APIManager.ts +++ b/src/api/APIManager.ts @@ -23,7 +23,7 @@ export class APIManager { let res: MediaTypeModel[] = []; for (const api of this.apis) { - const apiSettings = [api.apiName, MediaTypeModel].filter(s => s).join('') as keyof typeof this.plugin.settings; + const apiSettings = [api.apiName, "game"].filter(s => s).join('') as keyof typeof this.plugin.settings; if (apisToQuery.contains(api.apiName) && this.plugin.settings[apiSettings]) { const apiRes = await api.searchByTitle(query); res = res.concat(apiRes);