sunnyark / civitai-shortcut

140 stars 13 forks source link

NSFW images are not displayed in the user gallery #102

Closed DavidAntonin closed 2 months ago

DavidAntonin commented 3 months ago

NSFW images are not displayed in the user gallery regardless of the NSFW filter settings

KatieWebb commented 3 months ago

Have you figured anything out? I assume it's an Civitai API change, but I don't know how to code.

DavidAntonin commented 3 months ago

The problem still remains. I do not know how to solve it

KatieWebb commented 3 months ago

I think figured it out. When you change these, close and restart Automatic1111. I had to reload the UI a couple times after it restarted.

I edited the civitai_gallery_action.py in extensions\civitai-shortcut\scripts\civitai_manager_libs. I changed all the instances of "show_nsfw=False" to show_nsfw=True. I did a find aand replace to change that.

I also Changed nsfw=false to nsfw=true on line 786. If you can't find it, then look for this near the bottom: def get_default_page_url(modelId, modelVersionId = None, show_nsfw=True, limit=0):

I have a few images that are showing no preview. Not sure why. It's downloading NSFW images, but I don't think it's getting all of them still.

sunnyark commented 3 months ago

I apologize for the delayed response. As announced, personal circumstances have caused significant delays. I are currently inquiring with civitai about this issue. The nsfw-related filtering in civitai’s image API is functioning differently than described. I will update you as soon as we have more information.