Made sure to always allow default APIs
This commit is contained in:
parent
508b0ed03b
commit
5a8feca561
1 changed files with 1 additions and 2 deletions
|
|
@ -23,8 +23,7 @@ export class APIManager {
|
|||
|
||||
let res: MediaTypeModel[] = [];
|
||||
for (const api of this.apis) {
|
||||
const apiSettings = [api.apiName, "game"].filter(s => s).join('') as keyof typeof this.plugin.settings;
|
||||
if (apisToQuery.contains(api.apiName) && this.plugin.settings[apiSettings]) {
|
||||
if (apisToQuery.contains(api.apiName) && (this.plugin.settings[[api.apiName, "game"].filter(s => s).join('') as keyof typeof this.plugin.settings] || this.plugin.settings[[api.apiName, "default"].filter(s => s).join('') as keyof typeof this.plugin.settings])) {
|
||||
const apiRes = await api.searchByTitle(query);
|
||||
res = res.concat(apiRes);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue