jikan-rest
jikan-rest copied to clipboard
Update Anime/Manga SFW Policy
Needs to be reworked.
Anime filters out Rx types and Manga filters out Doujinshi type. This is not appropriate as other entry types can contain hentai/nsfw stuff.
Most likely will have to filter out by genre instead. Also need to explore filter Implementation on API endpoints as well as whether it's duo or tri state.
Duo state
?sfw
only check for filter presence. Filters out nsfw entries
Tri state
/?
no filter set. Results return everything by default
?sfw=true
returns only sfw entries
?sfw=false
returns only hentai/nsfw entries
Todo
- check filter implementation with mongodb query on duo/tri state
- explore API endpoints this can be implemented on
- setup SFW Policy (genres that will be excluded for maximizing SFW results)
Current quick fix: SFW should exclude all adult genres other than just hentai.
Fix (post-merge of https://github.com/jikan-me/jikan-rest/pull/227): Look into the above policy.
Finalized policy
User can pass sfw
in-query without any value on the following resource types with the following exclusions
Resource Types | Resource Exclusions |
---|---|
Anime | Genres: Erotica, Hentai Rating: Rx - Hentai |
Manga | Genres: Erotica, Hentai |
Available On The Following Endpoints
- Anime Search
- Manga Search
- Top Anime
- Top Manga
- Schedule
- Seasons
- What Else?
Implementation will be done on #346
Resolved with https://github.com/jikan-me/jikan-rest/pull/346
Does this include NSFW cover arts? Cause I'm seeing a few false positives 😅
Search for "Highschool of the Dead: Drifters of the Dead" and "Utsukushiki Sei no Reirei"
@Prid13 Please share the request and response details
Edit: Nevermind, I was able to reproduce this.
https://api.jikan.moe/v4/anime?sfw&q=Utsukushiki%20Sei%20no%20Reirei
This contains the hentai genre, so it shouldn't be showing up when I pass sfw
@Prid13 Fixed with #390
https://api.jikan.moe/v4/anime?sfw&q=Utsukushiki%20Sei%20no%20Reirei
As for "Highschool of the Dead: Drifters of the Dead", this is an ecchi anime. And we're not targetting those in SFW for now. You can use genres_exclude=9
to remove any ecchi titles.