-
Notifications
You must be signed in to change notification settings - Fork 147
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sanity level [Should be marked as Question] #275
Comments
Is it that an interface like search or ranking did not return? Or return image like the screenshot, and url like this: https://s.pximg.net/common/images/limit_sanity_level_360.png In the previous Pixiv only had R-18 restrictions on the web version, and would filter R-18 content in the interface when return. If it is confirmed that on the web version is showing, just check if the corresponding If is returned, you can paste the illust JSON here for more informations. If the image URL is |
I tried testing it and it's really weird. Even if I turn off the R-18 browsing restriction on the web, it still returns a placeholder for
Currently, I haven't found any # json_result = aapi.illust_detail(xxx)
illust = json_result.illust
if illust.image_urls["large"] == "https://s.pximg.net/common/images/limit_sanity_level_360.png":
# drop the illust and continue |
I think that's https://www.pixiv.net/info.php?id=9786. Unfortunately they seem to be applying it randomly, like the post linked in #280 which has no reason to be flagged. I think you can just check the "visible" field instead of special casing the image URL, but maybe that's not there on all endpoints. The only workaround I know is to use the web API instead of the mobile API. Unfortunately it's not only very different (it doesn't include image URLs in searches, you have to request info for each post individually), it also has completely separate auth, so you can't switch between them easily. |
|
If I look at the account feed from a web browser, then all the illustrations are visible, there is a maximum 14+ limit, obviously not 18+. But in the mobile version and, accordingly, through this package, more than half of the illustrations have a "SANITY_LEVEL" of more than 2 and are not displayed normally.
Does anyone have any ideas how to fix this?
https://user-images.githubusercontent.com/11748991/253568546-8af806f5-80e6-4e1a-812a-a4bce15c8f63.jpg
The text was updated successfully, but these errors were encountered: