We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9d874cb commit 62a4f2eCopy full SHA for 62a4f2e
src/api/apis/MALAPI.ts
@@ -22,7 +22,7 @@ export class MALAPI extends APIModel {
22
async searchByTitle(title: string): Promise<MediaTypeModel[]> {
23
console.log(`MDB | api "${this.apiName}" queried`);
24
25
- const searchUrl = `https://api.jikan.moe/v4/anime?q=${title}&limit=20`;
+ const searchUrl = `https://api.jikan.moe/v4/anime?q=${title}&limit=20${this.plugin.settings.sfwFilter ? '&sfw' : ''}`;
26
27
const fetchData = await fetch(searchUrl);
28
console.log(fetchData);
0 commit comments