Hello, I'm horrible with coding and have been banging my head on the wall trying to match plexes recommend naming structure
" /Batman Begins (2005) {imdb-tt0372784}
Batman Begins (2005) {imdb-tt0372784}.mp4"
and can't seem to get it to work.
Here is the bat code that works though it wont let me add {} around the imdb code so it comes out like.
" /Batman Begins (2005) imdb-tt0372784
Batman Begins (2005) imdb-tt0372784.mp4"
@echo off
"C:\Program Files\FileBot\filebot.exe" -rename "C:\Users\adamr\OneDrive\Desktop\MKV Movies" ^
--db TheMovieDB ^
--format "{n} ({y}) {'imdb-'}{imdbid}/{n} ({y}) {'imdb-'}{imdbid}" ^
--action move ^
--output "C:\Users\adamr\OneDrive\Desktop\MKV Movies"
pause
I have tried to add in { with '{' but it seems to ignore the ' and throws an error. Is there another way to get this string to work that I don't know about?
here is an example of the code that breaks with the '}'
@echo off
"C:\Program Files\FileBot\filebot.exe" -rename "C:\Users\adamr\OneDrive\Desktop\MKV Movies" ^
--db TheMovieDB ^
--format "{n} ({y}) {'{imdb-'}{imdbid '}'}/{n} ({y}) {'{imdb-'}{imdbid '}'}" ^
--action move ^
--output "C:\Users\adamr\OneDrive\Desktop\MKV Movies"
Is this a bug, or am i missing something though in my limited coding mind this should work.
{n} ({y}) {'{imdb-'}{imdbid '}'} but I get
syntax error unexpected input "}"
Plex Naming String Help
Re: Plex Naming String Help
rednoah wrote: ↑01 Nov 2025, 07:24Format: Select all
{ ny.colon(' - ') }{ " {tmdb-$tmdbid}" }{ " {edition-$edition}" }{ " [$vf, $vc, $ac]" }Code: Select all
Avatar (2009) {tmdb-19995} [1080p, x264, AAC]
Format: Select all
{ ny.colon(' - ') }{ '{tmdb-' + tmdbid + '}' }/{ ny.colon(' - ') }{ '{tmdb-' + tmdbid + '}' }Re: Plex Naming String Help
Yes I was prototyping in the app. Looks like your version is working for me. I really appreciate the help, coding is definitely not my strong suite.
Re: Plex Naming String Help
No worries. You're welcome.