plex imdb tag not adding to folder name

Any questions? Need some help?
Post Reply
nyxtyr
Posts: 3
Joined: 17 Nov 2020, 17:19

plex imdb tag not adding to folder name

Post by nyxtyr »

As seen on the plex documentation at https://support.plex.tv/articles/naming ... dia-files/
/Movies
/Batman Begins (2005) {imdb-tt0372784}
Batman Begins (2005) {imdb-tt0372784}.mp4
The imdb id is in the folder name and file name but when using the filebot renaming format below it only adds the imdb tag to the filename and not the folder. Does anyone know any way I can add it to the folder and filename?

When using this

Code: Select all

Y:/{plex.derive{" {imdb-$imdbid}"}}
It resaults to this

Code: Select all

Y:/Movies/Avatar (2009)/Avatar (2009) {imdb-tt0499549}

My desired output would be

Code: Select all

Y:/Movies/Avatar (2009) {imdb-tt0499549}/Avatar (2009) {imdb-tt0499549}.mkv
User avatar
rednoah
The Source
Posts: 19832
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: plex imdb tag not adding to folder name

Post by rednoah »

I'm pretty sure it's fine either way. But you can always further customize your format. Unfortunately, File.derive() can only be used to append information to the filename.

e.g.

Code: Select all

Y:/Movies/{ny}{" {imdb-$imdbid}"}/{ny}{" {imdb-$imdbid}"}
or

Code: Select all

Y:/{plex.parent}{" {imdb-$imdbid}"}/{plex.derive{" {imdb-$imdbid}"}.name}
:idea: Please read the FAQ and How to Request Help.
nyxtyr
Posts: 3
Joined: 17 Nov 2020, 17:19

Re: plex imdb tag not adding to folder name

Post by nyxtyr »

I tested

Code: Select all

Y:/{plex.parent}{" {imdb-$imdbid}"}/{plex.derive{" {imdb-$imdbid}"}.name}
and this works perfectly. Thank you for the reply much appreciated.
nyxtyr
Posts: 3
Joined: 17 Nov 2020, 17:19

Re: plex imdb tag not adding to folder name

Post by nyxtyr »

FileBot 4.9.3 broke the below snippet
Using TheMovieDB

Code: Select all

Y:/{plex.parent}{" {imdb-$imdbid}"}/{plex.derive{" {imdb-$imdbid}"}.name}
For some reason it is changing the names from
/Movies/Batman Begins (2005) [verify.com]/Batman Begins (2005) [verify.com].mp4
to
/Movies/Batman Begins (2005) {imdb-tt0372784}/Batman Begins (2005) {imdb-tt0372784}.com
< it is thinking the file extension is .com or some reason when it is mp4
User avatar
rednoah
The Source
Posts: 19832
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: plex imdb tag not adding to folder name

Post by rednoah »

What is the value of {plex} in this specific file / match case? Can you reproduce the problem with other test cases?


Here's what I get:

Code: Select all

{plex.derive{" {imdb-$imdbid}"}.name}
Image


:?: So you're saying it displays correctly in preview, but then preserves the wrong extension after clicking Rename? (it displays mp4 as extension and renames as *.mp4 just fine for me; so I can't reproduce this either given the information above)
:idea: Please read the FAQ and How to Request Help.
Post Reply