Script generation from Win GUI

Running FileBot from the console, Groovy scripting, shell scripts, etc
Post Reply
User avatar
Joombler
Posts: 18
Joined: 01 Oct 2021, 22:37

Script generation from Win GUI

Post by Joombler »

Storing files on Debian and rename them through Win version of Filebot.
Works fine. Is there a way of generating a command line from the preset(s) I use with the windows version so that I can use it for processing after downloads? Perhaps a debug file that I can read from? Thanks, Jmblr
-- With both feet on the ground you can't make any step forward...
User avatar
rednoah
The Source
Posts: 24009
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Script generation from Win GUI

Post by rednoah »

:arrow: Yes, you can write and execute filebot commands and so create your own *.sh or *.cmd scripts. Please read the FileBot Command-line Interface manual for details.


:idea: Unfortunately, there is no command generator for the Presets feature of the FileBot Desktop application. FileBot Node is essentially a command generator for the amc script though.


:idea: That said, all the concepts are the same, so it's mostly copy & paste. Your custom format is passed in via the --format option. The log file is passed in via the --log-file option. And so on. It's an extremely simple and straight-forward task, so ChatGPT and friends will likely do a good job here.

e.g. Do Select files: /input, Datasource: TheMovieDB, Rename Action: Hardlink, Format Expression: /output/{plex.id}, Debug Log: /path/to/debug.log

Shell: Select all

filebot -rename -r "/input" --db TheMovieDB -non-strict --action Hardlink --output "/output" --format "{plex.id}" --log-file "/path/to/debug.log"
** make sure to read How can I use the same format in both GUI and CLI? if your custom format is more complex
:idea: Please read the FAQ and How to Request Help.
User avatar
Joombler
Posts: 18
Joined: 01 Oct 2021, 22:37

Re: Script generation from Win GUI

Post by Joombler »

Thanks, that will help.
Should have searched the forum on topic prior anyway - sorry for that.
Cheers, Jmblr
-- With both feet on the ground you can't make any step forward...
User avatar
rednoah
The Source
Posts: 24009
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Script generation from Win GUI

Post by rednoah »

Let us know what you come up with. Might be useful for the next guy.
:idea: Please read the FAQ and How to Request Help.
Post Reply