More information on processed files

Running FileBot from the console, Groovy scripting, shell scripts, etc
Post Reply
devster
Posts: 417
Joined: 06 Jun 2017, 22:56

More information on processed files

Post by devster »

My understanding is that FileBot saves only the file original name, the file original directory and the destination in the history file, bundling elements into sequences in case a single run processes more files.
My question would then be: is it possible to modify this behavior in some way to allow the collection of arbitrary information on processed files in the history file?
In case this isn't, can a similar result be achieved via the exec command? For example by committing certain information to an sqlite or csv file, or even better, to a temporary one?
I only work in black and sometimes very, very dark grey. (Batman)
User avatar
rednoah
The Source
Posts: 22976
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: More information on processed files

Post by rednoah »

devster wrote: 17 Apr 2018, 11:38 In case this isn't, can a similar result be achieved via the exec command? For example by committing certain information to an sqlite or csv file, or even better, to a temporary one?
Yes, absolutely. I'd love it if people could start writing and sharing --def exec scripts:

Code: Select all

--def exec="my-add-file-hook {quote f, original, json}"

:idea: If you wanted to get the full original path in your --def exec that's not really supported though (but possible via internal API calls).
:idea: Please read the FAQ and How to Request Help.
devster
Posts: 417
Joined: 06 Jun 2017, 22:56

Re: More information on processed files

Post by devster »

What's the information within the json?
I only work in black and sometimes very, very dark grey. (Batman)
User avatar
rednoah
The Source
Posts: 22976
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: More information on processed files

Post by rednoah »

All the object metadata that is stored as xattr, like movie name/year/id/etc.
:idea: Please read the FAQ and How to Request Help.
Post Reply