Skip to content

Commit 62a4f2e

Browse files
committed
sfw filter
1 parent 9d874cb commit 62a4f2e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/api/apis/MALAPI.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export class MALAPI extends APIModel {
2222
async searchByTitle(title: string): Promise<MediaTypeModel[]> {
2323
console.log(`MDB | api "${this.apiName}" queried`);
2424

25-
const searchUrl = `https://api.jikan.moe/v4/anime?q=${title}&limit=20`;
25+
const searchUrl = `https://api.jikan.moe/v4/anime?q=${title}&limit=20${this.plugin.settings.sfwFilter ? '&sfw' : ''}`;
2626

2727
const fetchData = await fetch(searchUrl);
2828
console.log(fetchData);

0 commit comments

Comments
 (0)