Change subtitle format in Filebot

Running FileBot from the console, Groovy / FileBot scripting, shell scripts, etc
Post Reply
AquaRelliux
Posts: 5
Joined: 06 Jan 2019, 13:15

Change subtitle format in Filebot

Post by AquaRelliux » 06 Jan 2019, 13:25

Hello Filebot forums

I am new here and I am fairly fresh on Filebot and regexp. I am wondering if it is possible to change the subtitle language setting in filebot. I want .eng to be .en and .swe to be .sv. Beacuse that is how my Sub-zero subtitles is setup and also how my Plex scans the libraries:

Image

User avatar
rednoah
The Source
Posts: 15071
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Change subtitle format in Filebot

Post by rednoah » 06 Jan 2019, 17:16

Sure, just use the ISO2 property of the Language object you get via {lang}:

Code: Select all

{lang.ISO2}
:idea: Please read the FAQ and How to Request Help.

AquaRelliux
Posts: 5
Joined: 06 Jan 2019, 13:15

Re: Change subtitle format in Filebot

Post by AquaRelliux » 06 Jan 2019, 18:53

Works like a charm thanks! :)

Post Reply

Who is online

Users browsing this forum: titelas and 9 guests