How do I generate {imdb-tt0372784} markers?

All about user-defined episode / movie / file name format expressions
Post Reply
SkynetJ
Posts: 1
Joined: 09 Mar 2023, 04:16

How do I generate {imdb-tt0372784} markers?

Post by SkynetJ »

Hello,

Please suggests that files be name as the following, as this allows Plex to distinguish between exact movie names via IMDb.

- Batman Begins (2005) {imdb-tt0372784}
Batman Begins (2005) {imdb-tt0372784}.mp4

Specifically adding the curly braces with the IMDb tag. However, when I try to set it this way in FileBot, I either get a syntax error or it ignores the curly braces. I've provided a screenshot below of what I have tried. What do I need to do to have it recognize those, as I am certainly no expert on Groovy scripting.

Image
&
Imagescreenshot studio

Thanks in advance for any guidance.
User avatar
rednoah
The Source
Posts: 22899
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Plex Recommended File Format Isn't Working in FileBot

Post by rednoah »

YES:

Code: Select all

{ imdbid }
NO:

Code: Select all

{ { imdbid } }
:idea: Because the outer {...} delimit Groovy code. Everything in between is Groovy code. If you're using {...} in Groovy code then that could be interpreted as block or closure in this context, and so you get an error about ambiguous code: viewtopic.php?t=10824



:arrow: Code that generates {imdb-tt0372784} would look like this:

Code: Select all

{ ' {imdb-' + imdbid + '}' }


:arrow: That said, you'll probably want to just use the built-in {plex.id} format and let that take care of everything:

Code: Select all

{ plex.id }
:!: Additionally, you'll want to use TheMovieDB IDs and not IMDB IDs. {plex.id} does this by default. Please read the How do I organize files for Plex? manual for details.

Image
:idea: Please read the FAQ and How to Request Help.
Post Reply