Page 1 of 1

Add a static language string to subtitles

Posted: 19 Aug 2021, 23:29
by migat
Is there a way to make filebot rename subtitles as Movie (Year).eng.srt when I rename it along side the movie? When I download subtitles through filebot it renames them to this schema, I would love for the rename function to work the same way.

Re: Add a static language string to subtitles

Posted: 20 Aug 2021, 03:27
by rednoah
FileBot does this by default, assuming that your custom format adds the ".eng" part to the file name. The {plex} format does this by default.


:idea: The {lang}, {subt} and {plex} bindings will auto-detect the subtitle language based on the file name or subtitle text content, which may or may not be ".eng" depending on the subtitle file.


:idea: If you literally want to just add a static string to subtitle file names, then you can do this like so:

Code: Select all

{ ext =~ /srt/ ? ".eng" :  "" }

Re: Add a static language string to subtitles

Posted: 20 Aug 2021, 18:34
by migat
Oh my lord...it even moves it to the directory for me...I feel so stupid every time I ask a question here and then I find out it does more and more and more than I expected....