Page 1 of 1

Renaming Folders and Movie Files in place?

Posted: 13 Jan 2025, 21:51
by begunfx
Okay, so if I rename files in place by using {plex.name} it works like a charm. However, if the movie is located in a folder with the same name I'd like to be able to rename the folder and movie in place? I tried using the following:

Code: Select all

./{n} ({y}/{plex.name}
but it just creates another sub-folder with the rename folder and file.

This is what I have as an example:

THOR_THE_DARK_WORLD (2013)/THOR_THE_DARK_WORLD (2013).mp4
THOR_THE_DARK_WORLD (2013)/THOR_THE_DARK_WORLD (2013).eng.srt

When I run the command I have now I get:

THOR_THE_DARK_WORLD (2013)/Thor The Dark World (2013)/Thor The Dark World (2013).mp4
THOR_THE_DARK_WORLD (2013)/Thor The Dark World (2013)/Thor The Dark World (2013).eng.srt

What I'd like to have is just:
Thor The Dark World (2013)/Thor The Dark World (2013).mp4
Thor The Dark World (2013)/Thor The Dark World (2013).eng.srt

Thanks in advance for your help!

Re: Renaming Folders and Movie Files in place?

Posted: 14 Jan 2025, 08:49
by rednoah
:idea: You can use ../{ny}/{plex.name} if all your movies already have their own movie folder.


:!: If your files use different folder levels, the previously discussed question arises: Relative to what?


:arrow: If you just use {ny}/{plex.name} then FileBot will figure it out, based on the source file path and the proposed target file path. It'll likely work as expected for the example file path listed above. You can always have your custom format generate absolute target file paths as a last resort if you need to take full control though.

Re: Renaming Folders and Movie Files in place?

Posted: 14 Jan 2025, 19:32
by begunfx
Thanks rednoah. Based on your feedback this worked for me:

Code: Select all

../{n} ({y})/{plex.name}
. For my needs I'm generally renaming within my media content folder so this should do it for me. Thanks!