Closed austblack88 closed 1 day ago
For "api": "rest"
(default), the numeric ID should be available as filename
. I should probably give it a proper id
name, though.
For
"api": "rest"
(default), the numeric ID should be available asfilename
. I should probably give it a properid
name, though.
I did try to fall back on the filename, but it's not always the same as the image id.
With https://github.com/mikf/gallery-dl/commit/987f6c36c0d48d870acafac4dd24ded13641147c, all model images have a numeric {file[id]}
value, and all regular images an {id}
one; {file[id]|id}
in general.
Even without https://github.com/mikf/gallery-dl/commit/987f6c36c0d48d870acafac4dd24ded13641147c, you should be able to get the ID value with {file[id]|id|filename}
and/or by using -o api=trpc
.
I noticed that, when scraping images, the image id keyword isn't available for every subcategory in the Civitai extractor. For instance, it will be available for the "user-images" extractor:
but not for the "model" extractor (like when extracting images from a model's gallery).
Would it be feasible to include this in the other extractors?