Renaming Folders and Movie Files in place?

Any questions? Need some help?
Post Reply
begunfx
Posts: 28
Joined: 11 Jan 2025, 14:55

Renaming Folders and Movie Files in place?

Post 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!
User avatar
rednoah
The Source
Posts: 23742
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Renaming Folders and Movie Files in place?

Post 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.
:idea: Please read the FAQ and How to Request Help.
begunfx
Posts: 28
Joined: 11 Jan 2025, 14:55

Re: Renaming Folders and Movie Files in place?

Post 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!
Post Reply