zixaphir / Stable-Diffusion-Webui-Civitai-Helper

Stable Diffusion Webui Extension for Civitai, to manage your model much more easily.
175 stars 24 forks source link

Feature Request - Scan on start #27

Open TomKranenburg opened 8 months ago

TomKranenburg commented 8 months ago

Sorry if I've missed something, I've been looking for this for a while now and I can't find anything. I actually have no problem with the extension which has been fantastic for me. It's an essential component of my workflow now.

However basically I sometimes forget to click the "Scan" button in the CivitAI Helper tab for quite some time. Is there a way to get it to run on some predictable regular interval? For example when Stable Diffusion is started. Something like this. Or even every hour in the background perhaps.

I realise this might add a lot of time on to the startup routine. So it won't be for everyone. Perhaps having it switched off as default would be a good idea.

zixaphir commented 8 months ago

I'm weighing the pros and cons of this, but at the moment, I'm leaning towards being against it. I understand that having to initiate a scan manually can be frustrating but I also worry that if I add an option like this, it's going to hit Civitai's API rather hard if a lot of people update at the same time.

TomKranenburg commented 8 months ago

Ahhh of course. I did wonder this.

Are you using your own API key? You would have to shift to users inputting their own.

zixaphir commented 8 months ago

Civitai doesn't provide API keys for their REST API.

TomKranenburg commented 8 months ago

chrome_Sa5s0e6TNH

I just assumed this was REST really.

zixaphir commented 8 months ago

Sorry, I'm currently using this: https://github.com/civitai/civitai/wiki/REST-API-Reference. I do not know what functionality that option provides nor what API it is referencing.