Bionus / imgbrd-grabber

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

Add "Include Sub-folders" to the MD5 list fixer. #3253

Open ProtagNeptune opened 4 months ago

ProtagNeptune commented 4 months ago

image

Bionus commented 4 months ago

It already includes sub-folders though. It will match every image found in the directory and its sub-directories, as long as they match the pattern provided. If it's %md5%.%ext% as in your image, it indeed won't match anything in sub-directories. If it's %artist%/%md5%.%ext%, it will match 1 level deep.

ProtagNeptune commented 4 months ago

It already includes sub-folders though. It will match every image found in the directory and its sub-directories, as long as they match the pattern provided. If it's %md5%.%ext% as in your image, it indeed won't match anything in sub-directories. If it's %artist%/%md5%.%ext%, it will match 1 level deep.

It doesn't work for me with my filename: <!(ext:avif|ext:bmp|ext:gif|ext:jpe|ext:jpeg|ext:jpg|ext:jxl|ext:mp4|ext:png|ext:swf|ext:webm|ext:webp|ext:zip)?tmp/><("animated"|"animated_gif"|"animated_png")&(ext:avif|ext:gif|ext:jxl|ext:png|ext:webp)?ani/><!("animated"|"animated_gif"|"animated_png")&(ext:avif|ext:gif|ext:jxl|ext:png|ext:webp)?img/><("animated"|"ugoira")&(ext:zip)?ani/><!("animated"|"ugoira")&(ext:zip)?tmp/><(ext:bmp|ext:jpe|ext:jpeg|ext:jpg)?img/><(ext:mp4|ext:webm)?vid/><(ext:swf)?swf/>%md5%.%ext%

<!(ext:avif|ext:bmp|ext:gif|ext:jpe|ext:jpeg|ext:jpg|ext:jxl|ext:mp4|ext:png|ext:swf|ext:webm|ext:webp|ext:zip)?tmp/>
<("animated"|"animated_gif"|"animated_png")&(ext:avif|ext:gif|ext:jxl|ext:png|ext:webp)?ani/>
<!("animated"|"animated_gif"|"animated_png")&(ext:avif|ext:gif|ext:jxl|ext:png|ext:webp)?img/>
<("animated"|"ugoira")&(ext:zip)?ani/>
<!("animated"|"ugoira")&(ext:zip)?tmp/>
<(ext:bmp|ext:jpe|ext:jpeg|ext:jpg)?img/>
<(ext:mp4|ext:webm)?vid/>
<(ext:swf)?swf/>
%md5%.%ext%
ProtagNeptune commented 4 months ago

Would using something like %folder%/%md5%.%ext% help me? image

Edit: Yep. image