Add a static language string to subtitles

Any questions? Need some help?
Post Reply
migat
Posts: 23
Joined: 11 Jun 2020, 05:51

Add a static language string to subtitles

Post 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.
User avatar
rednoah
The Source
Posts: 20078
Joined: 16 Nov 2011, 08:59

Re: Add a static language string to subtitles

Post 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" :  "" }
:idea: Please read the FAQ and How to Request Help.
migat
Posts: 23
Joined: 11 Jun 2020, 05:51

Re: Add a static language string to subtitles

Post 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....
Post Reply