How do I specify a custom format on the command-line?

Running FileBot from the console, Groovy scripting, shell scripts, etc
Post Reply
Levaculik
Posts: 5
Joined: 05 Aug 2022, 00:33

How do I specify a custom format on the command-line?

Post by Levaculik »

I wanted to rename my files via terminal, but I'm having some problems getting it right.
as you can see in the image. it is renaming, but not by the configuration that I put. could someone help me.
Image

I'm using this configuration.

Code: Select all

for f in *.mkv ; do filebot "$f" -rename -r --db TheMovieDB::TV -non-strict --mode "{n.upperInitial().space(".")}.{vc}.{s00e00}.{t.space}(".").{vf}.CR.WEB-DL.{ac}{channels}.{vc.replace('AVC','x264')}.pt-BR.JPN-Levaculik" --lang English ;done
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: help newbie in the area

Post by rednoah »

You mean to use the --format option to specify a custom format:
https://www.filebot.net/cli.html

Image



The --mode interactive option can be used to enable console-interactive mode:
viewtopic.php?t=4398

Image



You can use filebot -help or read the manpage if you need help with which option does what.
:idea: Please read the FAQ and How to Request Help.
Post Reply