Hi!
I'm trying to write a script to import media using caUtils, but I ran into an issue when it comes to selecting a mapping during the import process. When using caUtils import-data, I can easily use the --mapping option to specify which mapping I want.
However, for caUtils import-media, there doesn’t seem to be an equivalent option to choose a mapping from the command line.
In the web UI, I can manually select a mapping if I enable this setting in app.conf:
allow_user_selection_of_embedded_metadata_extraction_mapping = 1
But I still don't know how to specify the mapping via the CLI.
I’m aware that I can set default mappings like this:
embedded_metadata_extraction_mapping_defaults = {
video/* = example_mediainfo_mapping,
image/* = example_exif_tool_mapping,
application/pdf = pdf_metadata_import
}
Unfortunately, this doesn’t solve my problem. I only want to import TIFF images, and I need to use mapping1 for files from one directory, and mapping2 for files from another directory.
Is there any way to select the mapping for import-media via the command line? Or maybe some workaround to achieve this?
Thanks in advance for any help or suggestions!