I use this to rename and add the language code to the srt subtitles {'.'+lang}, but it uses spa and eng, I would prefer ES and EN.
is even possible to make filebot to do that?
Thanks
can I tell filebot to use "es" Instead of "spa" and "en" instead of 'eng"
-
- Posts: 30
- Joined: 26 Jan 2018, 04:10
Re: can I tell filebot to use "es" Instead of "spa" and "en" instead of 'eng"
Yes. You can have your custom format yield 2-letter language codes:
Code: Select all
{'.'+lang.ISO2}
-
- Posts: 30
- Joined: 26 Jan 2018, 04:10
Re: can I tell filebot to use "es" Instead of "spa" and "en" instead of 'eng"
You are awesome thank you
Re: can I tell filebot to use "es" Instead of "spa" and "en" instead of 'eng"
Does this also work with the {subt} binding or for fn:suball?
I only work in black and sometimes very, very dark grey. (Batman)
Re: can I tell filebot to use "es" Instead of "spa" and "en" instead of 'eng"
No. The suball script does not support custom format expressions at all. If you use --format MATCH_VIDEO_ADD_LANGUAGE_TAG (e.g. i.e. --format constant for -get-subtitles) then you'll always get ISO 639-3 language codes.
You can use -rename --db xattr -non-strict to batch process files offline with your own --format and this way you can change 3-letter language codes to 2-letter language codes.
You can use -rename --db xattr -non-strict to batch process files offline with your own --format and this way you can change 3-letter language codes to 2-letter language codes.