Bionus / imgbrd-grabber

Very customizable imageboard/booru downloader with powerful filenaming features.
https://www.bionus.org/imgbrd-grabber/
Apache License 2.0
2.47k stars 216 forks source link

Add pool id to list of available filename tags #2393

Open saafris opened 3 years ago

saafris commented 3 years ago

Is your feature request related to a problem? Please describe

On some websites, such as Gelbooru and E621, users regularly add related images (such as the pages of a comic) to the same pool. Currently, there does not seem to be any way for a user of Grabber to group their downloaded files by these pools.

Describe the solution you'd like

It would be useful to have the following two tokens be made available for the filename string.

%pool%, which would be replaced with the pool's name if available, or blank if not part of a pool.

%pool_id%, which would be replaced with the pool's id if available, or blank if not part of a pool.

Additional context

Example pools (SFW images on NSFW websites): https://e621.net/posts/2090773 - A post in multiple pools https://e621.net/pools/20323 - One of the pools the above post is present in

https://gelbooru.com/index.php?page=post&s=view&id=552217 - A post in a single pool https://gelbooru.com/index.php?page=pool&s=show&id=45162 - The pool the above post is present in

I am not sure whether the responses of different websites handle their pools differently.

Laesx commented 3 years ago

I did some quick test and at least pool id works, seems like it's not documented but %pool% spits out the pool id, but yeah name would be hugely useful as well.

Shinji322 commented 2 years ago

Any update on this? I just tried setting %pool% in the filename and it doesn't seem to work.

numbersixcze commented 1 year ago

I can confirm that %pool% works for me, but I would love to see something like %pool.name%. That would be really great.