BlafKing / sd-civitai-browser-plus

Extension to access CivitAI via WebUI: download, delete, scan for updates, list installed models, assign tags, and boost downloads with multi-threading.
GNU Affero General Public License v3.0
289 stars 44 forks source link

[Bug]: Preview image not downloading #236

Closed Terroosh closed 4 months ago

Terroosh commented 4 months ago

Describe the bug.

The preview image doesn't seem to be downloaded anymore when downloading a model, example model:

https://civitai.com/models/354133

Steps to reproduce the problem.

  1. Download the model
  2. Preview image does not get saved

Expected behavior

Preview image gets saved

System info

Console logs

CivitAI Browser+: Model saved to: K:\SD A1111\models\Lora\PCMR_v1.safetensors
CivitAI Browser+: Model info saved to "K:\SD A1111\models\Lora\PCMR_v1.json"

Additional information

No response

Terroosh commented 4 months ago

Adding the model to a download queue by clicking the checkmark box on the image will allow the preview image to download but clicking "Download Model" will not download a preview image.

BlafKing commented 4 months ago

Thanks again for reporting!

This error occurred if the model did not have it's hashes generated yet, posted a little hotfix that should download the preview image in both cases if a hash is not found! :)

I'll mark this as resolved 👍🏻