hydrus icon indicating copy to clipboard operation
hydrus copied to clipboard

Set the tag services used when creating export filenames

Open ulovemoe opened this issue 2 years ago • 0 comments

When exporting files, you can create a filename pattern that generates the filenames/intermediate folder names based on things like tags. You can create a pattern such as [creator]-{file_id}, and it will replace [creator] with all instances of tags with the namespace creator on the file.

Currently, there is no way to set which tag service(s) are used when creating these filenames. If you have two tag services, and a file contains, say, "creator" tags in both services, Hydrus will look in both services when picking tags to include in the export filename. For reference, here is the current file export window:

YAMATO-Nate_export files - hydrus client 566_2024-03-17T13-06-40

To give a precise example, with online art you will often find images that are tagged with additional creators, representing 3rd-party edits. In these cases, if I want to include creator tags in my export pathnames, I have to accept that these less relevant creators will have their names in the pathnames somewhere. Hydrus has a filename limit of 160 characters on Windows, so including those less relevant tags wastes filename space. I also simply like to keep my downloader tags separate from my tags, and in general don't want to include downloader tags in my filename paths.

The feature I'm envisioning is a way to set a whitelist/blacklist for each tag service, which would offer fine-grain control over which tags can go into your export pathnames. Something similar to what you see when you try to set tag merge options in your duplicates processing page:

YAMATO-Nate_edit which tags will be merged - hydrus client 566_2024-03-17T13-25-08

I am using Hydrus verison 566, and Windows 11, for reference.

ulovemoe avatar Mar 17 '24 18:03 ulovemoe