Add a static language string to subtitles
Add a static language string to subtitles
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
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.
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.
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
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....