Hi
How can the caption be renamed and the language added at the end?
Example:
You have videos and subtitles with different names in a folder
Grays.Anatomy.S02E08.WEB-DL.GBR.mkv
Grays.Anatomy.S02E08.WEB.AMZN.srt
So I launch the code to rename the files and they look like this
Grays Anatomy 2x08.mkv
Grays Anatomy 2x08.srt
However, I wanted the caption to have a language acronym at the end, example:
Grays Anatomy 2x08.mkv
Grays Anatomy 2x08.eng.srt
It is possible?
I use Filebot on Linux via ssh
Subtitle rename
Re: Subtitle rename
Just use the {plex} format which takes care of these things by default, or add {'.'+lang} to your custom format.
Re: Subtitle rename
This does not work in the cli versionrednoah wrote: ↑30 Jan 2021, 16:12 Just use the {plex} format which takes care of these things by default, or add {'.'+lang} to your custom format.
Re: Subtitle rename
Naturally, custom formats work the same in both GUI and CLI. Why wouldn't they?
There's the --format option for that:
https://www.filebot.net/cli.html

Re: Subtitle rename
Can you tell me the correct way to add "--format" to the command line?rednoah wrote: ↑31 Jan 2021, 02:48Naturally, custom formats work the same in both GUI and CLI. Why wouldn't they?
There's the --format option for that:
https://www.filebot.net/cli.html
What have you tried so far? What does the console output say? Please read viewtopic.php?t=1868 for details.
Where to add --format? And that below is right?
filebot -non-strict -rename -r --output srt --lang pt-br /mnt/****/'***'/'Greys Anatomy'/'S01'
Re: Subtitle rename
You will find examples in the documentation linked above:
https://www.filebot.net/cli.html
e.g.
https://www.filebot.net/cli.html
e.g.
Code: Select all
--format "{plex.name}"