sfw filter
This commit is contained in:
parent
9d874cbd18
commit
62a4f2ec56
1 changed files with 1 additions and 1 deletions
|
|
@ -22,7 +22,7 @@ export class MALAPI extends APIModel {
|
|||
async searchByTitle(title: string): Promise<MediaTypeModel[]> {
|
||||
console.log(`MDB | api "${this.apiName}" queried`);
|
||||
|
||||
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' : ''}`;
|
||||
|
||||
const fetchData = await fetch(searchUrl);
|
||||
console.log(fetchData);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue