Regex-based naming scheme misnaming one file
Posted: 30 Mar 2026, 21:41
Sorry for the awkward subject line, but I wasn't sure how to express my issue concisely. I've been using this command for about a year without issue. But for some reason, it's inaccurately naming episodes of ONE show (while continuing to work properly on other new episodes for other shows):
Essentially, the command attaches the {plex} binding, then – using regex – appends HDR info based on what type of HDR is present in the file (typically Dolby Vision and/or HDR10).
The issue with the file in question is that it is naming episodes of the show in question as 'HDR' and not 'HDR10' despite HDR10 being present in the file. MediaInfo output is at https://pastebin.com/dUP1YrRi
Any idea what's not working here for this one particular show?
Shell: Select all
/Applications/FileBot.app/Contents/MacOS/filebot.sh -rename "$1" --db TheMovieDB::TV -non-strict -non-strict --log-file ~/Documents/filebot.log --format "{~plex} ({vf}{video.HDR_Format =~ /Dolby Vision/ && video.HDR_Format_Compatibility =~ /HDR/ ? ' - DV+HDR10)' : video.HDR_Format =~ /Dolby Vision/ && video.HDR_Format_Compatibility !=~ /HDR/ ? ' - DV)' : video.HDR_Format !=~ /Dolby Vision/ && video.HDR_Format_Compatibility =~ /HDR10/ ? ' - HDR10)': ')'}" -exec touch {folder} {folder.dir}The issue with the file in question is that it is naming episodes of the show in question as 'HDR' and not 'HDR10' despite HDR10 being present in the file. MediaInfo output is at https://pastebin.com/dUP1YrRi
Any idea what's not working here for this one particular show?