Confuzu/CivitAI_Image_grabber

It does no longer download the matching model id content, instead it downloads wrong releases content pictures

Closed this issue · 2 comments

Thx for the grabber which i enjoy to use very much.
I just noticed that it does no longer download the matching model id content, instead it downloads wrong releases content pictures.

This is also in the previous release now.

Windows 10 64 Bit
Python 3.10.11

httpx==0.27.2
tqdm==4.66.5

All requirements installed.

Works:
Checkpoint and LoRA Releases which do have a MODEL Version ID

like for example:
https://civitai.com/models/58714?modelVersionId=917196

If you add the MODEL Version ID it downloads the correct content and adds it into the folders.

Does not work:
All Model ID content with just a single release Model ID

Example:LoRA
https://civitai.com/models/819830/air-travel-poster

Example: Checkpoint
https://civitai.com/models/806229/epic-vision

2024-10-03 11_06_44-civit_image_downloader_update

It displays to download the model ID matching

2024-10-03 11_12_53-civit_image_downloader_update

and the log tells

2024-10-03 11:11:59,202 - INFO - Marked as downloaded: 23036223 at image_downloads\Model_ID_Search\model_819830\23036223.png
2024-10-03 11:11:59,215 - INFO - Marked as downloaded: 28674241 at image_downloads\Model_ID_Search\model_819830\28674241.png
2024-10-03 11:11:59,228 - INFO - Marked as downloaded: 28078164 at image_downloads\Model_ID_Search\model_819830\28078164.png
2024-10-03 11:12:02,818 - INFO - Received 50 items from API for model 819830

Afterwards the pictures downloaded are not the ones of the release and from entire different sources.

I was wondering why it downloads like hundreds pictures of just a LoRA Release with like 5 pictures.

thanks for your bug report and I was able to replicate it. The problem here is not my script but the API that outputs incorrect data when the script asks for the images for the modelID.
When I make a manual query with the api, I also only get incorrect image links

Hi,

nice you had a look at it.

Thx your information that it is API related.

It seems to be fixed and it works again.
I used the two examples above and some others and all of them are downloading correct now.

If you can confirm this then it is resolved :)