Correct a typo in MOVIE folders and files?

All about user-defined episode / movie / file name format expressions
Post Reply
User avatar
ToxicAvenger
Posts: 9
Joined: 31 Oct 2023, 21:01

Correct a typo in MOVIE folders and files?

Post by ToxicAvenger »

I'm naming for Emby (Premiere)

I have realized after months of manually naming Movie folders and files that I had a typo in my key macro that I use for manually naming the movies. I have TMDBIB instead of TMDBID...

3 Days in Malay (2023) [tmdbib=1152624]

I know, just use Filebot for all of my naming and I probably will get my old self to switch to it for Movies. I use it now (Lifetime license) just for TV Shows.

I am too coding-challenged to figure this out, so: Is there a way that I could use Filebot to go through all of those media folders and files and replace my typo with the proper TMDBID?

Thank you for any thoughts on this!
"I think that the mistake a lot of us make is thinking that the state-appointed shrink is our friend."
User avatar
rednoah
The Source
Posts: 23935
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Correct a typo in MOVIE folders and files?

Post by rednoah »

You can use Plain File Mode with the following plain file format:

Format: Select all

{ fn.replace('tmdbib', 'tmdbid') }

If you need to do this replacement on the entire file path, and not just the file name, then you can use this plain file format:

Format: Select all

{ f.path.replace('tmdbib', 'tmdbid') }


:idea: I recommend using the {plex.id} format in the future which takes care of adding the correct ID marker.
:idea: Please read the FAQ and How to Request Help.
User avatar
ToxicAvenger
Posts: 9
Joined: 31 Oct 2023, 21:01

Re: Correct a typo in MOVIE folders and files?

Post by ToxicAvenger »

This is fantastic, THANK YOU!!!

I'm sorry to be so challenged, my brain just isn't wired for this kind of thinking. :-)
"I think that the mistake a lot of us make is thinking that the state-appointed shrink is our friend."
Post Reply