Added temporary way to test media type as "game"

This commit is contained in:
ltctceplrm 2024-01-31 22:38:06 +01:00
parent 2ea237822e
commit d1affcdcb6

View file

@ -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);