Bionus / imgbrd-grabber

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

conditional filenameing/folder #1569

Closed drakkillen closed 5 years ago

drakkillen commented 5 years ago

i been trying for 1.5h to make a conditional to put images containing a specific tag in a specified folder and its not working. i follow the wiki and tried numerous combinations but it just don't work, and the examples aren't really clear on how to do it: tested conditionals <%tag:contains="TagName"> <"TagName"> "TagName"

TagName <%tag% "TagName"> <%tag% TagName> might tested more variations i don't remember any clarification would be much much appreciated
Bionus commented 5 years ago

What are you exactly trying to do?

<"tag_name"/>%md5%.%ext% will generate tag_name/%md5%.%ext% if "tag_name" is present, and %md5%.%ext% if it's not, which looks like what you're trying to do.

The same thing applies with a %token%, where <%artist%/>%md5%.%ext% will generate %artist%/%md5%.%ext% if the image has any artist, and %md5%.%ext% otherwise.

Also, in most cases I would suggest to use a full conditional filename instead:

image

Where you don't have to complicate your filename with conditions.

Also, both conditionals will get totally re-done for Grabber 7, with a much clearer syntax.

drakkillen commented 5 years ago

ah i see thanks for the help :D