Page 1 of 1

Correct a typo in MOVIE folders and files?

Posted: 20 Dec 2024, 21:06
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!

Re: Correct a typo in MOVIE folders and files?

Posted: 21 Dec 2024, 04:44
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.

Re: Correct a typo in MOVIE folders and files?

Posted: 21 Dec 2024, 14:21
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. :-)