Page 1 of 1

Subtitles naming

Posted: 31 Dec 2019, 22:00
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

Re: Subtitles naming

Posted: 31 Dec 2019, 22:03
by rednoah
Just add {subt} to your format:

Code: Select all

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

Re: Subtitles naming

Posted: 31 Dec 2019, 22:16
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

Re: Subtitles naming

Posted: 31 Dec 2019, 22:33
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}

Re: Subtitles naming

Posted: 31 Dec 2019, 22:36
by nicolasrata
Awesome !!!

Thanks a lot