Embedded subtitle identified in filename.
Posted: 23 Dec 2022, 19:06
I have been using Filebot for a while not and have been quite pleased with this custom preset that I use for my Plex movie library.
If I have multiple English .srt subtitles, and amend the extension for both a forced and hearing impaired subtitle with .sdh.srt & .forced.srt, Filebot renames all three English subtitles perfectly
Like this example…
My new goal is to add an identifier to the filename if there are any embedded English subtitles, WITHOUT modifying the media filename if there are also external subtitles being renamed.
I’ve grabbed the following code from this forum post… viewtopic.php?t=4882
Using
Give a results like this…
I thought I had hit the Holy Grail of Filebot movie presets to use with my Plex library, but quickly discovered that if a media file has an embedded subtitle that’s listed as und (Undertermined) in the container file, I won’t be aware of that fact during batch renaming.
Is there anyway to look for both, and to have either ENGSUB or UNDSUB placed into the filename depending on which is found?
As an alternative, I’d be just as happy if any embedded subtitle could trigger adding a generic SUB to all media files, no matter what the subtitle is labeled as.
It would be extremely rare to find a media file with an English audio track that also only contained a non-English embedded subtitle file.
Long time user and first time poster to the forum.
In my opinion Filebot is the most important tool for building a Plex media collection, so thank you for the program and any help in this matter.
Code: Select all
{n} ({y}) {" {tmdb-$id}"} - {vf} {vc} {af} {ac}{subt}
Like this example…
Code: Select all
Foul Play (1978) {tmdb-15659} - 1080p x265 6ch AAC.eng.SDH.srt
I’ve grabbed the following code from this forum post… viewtopic.php?t=4882
Code: Select all
{ textLanguages =~ /eng/ ? 'ENGSUB' : null } }
Code: Select all
{n} ({y}) {" {tmdb-$id}"} { "{edition-${tags.first()}}" } - {vf} {vc} {af} {ac}{subt} { textLanguages =~ /eng/ ? '[ENGSUB]' : null }
Code: Select all
The Out-of-Towners (1999) {tmdb-8970} - 720p AVC 6ch AC3 [ENGSUB].mkv
Is there anyway to look for both, and to have either ENGSUB or UNDSUB placed into the filename depending on which is found?
As an alternative, I’d be just as happy if any embedded subtitle could trigger adding a generic SUB to all media files, no matter what the subtitle is labeled as.
It would be extremely rare to find a media file with an English audio track that also only contained a non-English embedded subtitle file.
Long time user and first time poster to the forum.
In my opinion Filebot is the most important tool for building a Plex media collection, so thank you for the program and any help in this matter.