Page 1 of 1

How do I add {imdb-tt0416449} to movie file names?

Posted: 19 Aug 2022, 14:22
by UnknownUser
Hello I just installed filebot and have a question.

How do I simply add information to a title? For example. The file is called "300 (2007) - Director's Cut.mkv". Now I would like to keep the name like it is, but simply add "{imdb-tt0416449}" to it.

Expected result "300 (2007) - Director's Cut {imdb-tt0416449}.mkv"

Re: How to add informations to a title

Posted: 22 Aug 2022, 10:13
by rednoah
e.g. I'd recreate your naming pattern via a custom format like so:

Code: Select all

{ ny }{ " - " + tags }{ " {imdb-$imdbid}" }

Re: How do I add {imdb-tt0416449} to movie file names?

Posted: 23 Aug 2022, 12:47
by UnknownUser
Thank you, but after the - there aren't always tags, so I managed to solve it like this

Code: Select all

{fn} {"{imdb-$imdbid}"}

Re: How do I add {imdb-tt0416449} to movie file names?

Posted: 23 Aug 2022, 14:38
by rednoah
This snippet will match patterns such as Director's Cut from the original file name and prepend a dash:

Code: Select all

{ " - " + tags }
It notably does not require the original file name to contain any tags, or follow any particular naming pattern. If { tags } yields no value then { " - " + tags } yield no value either, and no - followed by nothing either.



:!: This can work, but if you don't use {ny} then you have absolutely no chance of spotting mismatches and you might end up with an incorrect imdb numbers in one or two files and that could be a problem later:

Code: Select all

{fn} {"{imdb-$imdbid}"}

Re: How do I add {imdb-tt0416449} to movie file names?

Posted: 23 Aug 2022, 16:09
by UnknownUser
My naming scheme wasn't as consistent that I could have recreated it with an automation. Or at least I wouldn't know how to with so many variables. That's why I tried to keep everything how it was, while only adding this tag to make it easier for Plex to match them. It was somewhat of a manual process anyway with matching and after that verifying if it got everything right. But I still saved a lot of time considering it were over 1000 files