Running FileBot from the console, Groovy scripting, shell scripts, etc
darkvinill
Posts: 15 Joined: 23 Feb 2018, 23:35
Post
by darkvinill » 26 Feb 2018, 08:39
Hello. Is it possible to run a command like this:
// type may be "Tv", "movie" or "anime"
Code: Select all
filebot -script fn:amc --process --def exec="php path/to/cli.php titles import {type} {filePath} {json}" "ut_label=%L" "ut_state=%S" "ut_title=%N" "ut_kind=%K" "ut_file=%F" "ut_dir=%D"
I just want it to pass all information to a script (php in this case) instead moving or renaming the file.
_________
Is it normal that "tmdbid" is undefined if the id is on series expression?
rednoah
The Source
Posts: 23955 Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:
Post
by rednoah » 26 Feb 2018, 10:32
Unfortunately, this particular use case is not supported.
The best course of action is probably to create hardlinks and then delete them later if you don't need them.
Depending on the available info, bindings may yield different values or not value at all. The {tmdbid} is only defined for movies.
darkvinill
Posts: 15 Joined: 23 Feb 2018, 23:35
Post
by darkvinill » 26 Feb 2018, 10:55
rednoah wrote: ↑ 26 Feb 2018, 10:32
Unfortunately, this particular use case is not supported.
The best course of action is probably to create hardlinks and then delete them later if you don't need them.
It would be nice to have documentation to write a script
rednoah
The Source
Posts: 23955 Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:
Post
by rednoah » 27 Feb 2018, 10:41
The FileBot format expression environment does provide a built-in quote argument function: