Subtitles naming

All about user-defined episode / movie / file name format expressions
Post Reply
nicolasrata
Posts: 7
Joined: 31 Dec 2019, 21:50

Subtitles naming

Post by nicolasrata »

Hello,
Thanks a lot for this awesome software.
I have a question about the naming of the subtitles.
I have the Mac version from the Mac app store and I use this code for the naming of my TV shows.

Code: Select all

{plex.name} [{vf} {vc} {ac} {channels} {hdr}] {audioLanguages} {textLanguages}
Which works great. But, there is always a but, when I rename episode and subtitles I would like FileBot to put the language extension at the end and not in the middle of the name of the subtitle.
(Plex doesn't see the subtitle if the language extension is in the middle of the name)

How should I proceed to achieve that?

Now I have

Code: Select all

Arrow - S02E01 - City of Heroes [1080p x265 AAC 5.1 ] [eng].mkv
 Arrow - S02E01 - City of Heroes.eng [1080p x265 AAC 5.1 ] [eng].srt
And I would like

Code: Select all

Arrow - S02E01 - City of Heroes [1080p x265 AAC 5.1 ] [eng].mkv
 Arrow - S02E01 - City of Heroes [1080p x265 AAC 5.1 ] [eng].eng.srt
Thanks a lot

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

Re: Subtitles naming

Post by rednoah »

Just add {subt} to your format:

Code: Select all

{plex.name} [{vf} {vc} {ac} {channels} {hdr}] {audioLanguages} {textLanguages}{subt}
:idea: Please read the FAQ and How to Request Help.
nicolasrata
Posts: 7
Joined: 31 Dec 2019, 21:50

Re: Subtitles naming

Post by nicolasrata »

Thanks for the quick answer.
It's working for putting .eng at the end, but I still have the .eng in the middle

Code: Select all

{plex.name} [{vf} {vc} {ac} {channels} {hdr}] {audioLanguages} {textLanguages}{subt}

Code: Select all

Arrow - S02E01 - City of Heroes.eng [1080p x265 AAC 5.1 ] [eng] .eng.srt
User avatar
rednoah
The Source
Posts: 22976
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Subtitles naming

Post by rednoah »

I see. {plex} already includes that part:
viewtopic.php?t=4116

You'll need a different approach then:

Code: Select all

{plex.derive{' '+allOf{vf}{vc}{ac}{channels}{hdr}}{' '+audioLanguages}{' '+textLanguages}.name}
:idea: Please read the FAQ and How to Request Help.
nicolasrata
Posts: 7
Joined: 31 Dec 2019, 21:50

Re: Subtitles naming

Post by nicolasrata »

Awesome !!!

Thanks a lot
Post Reply