IMDB ID renaming

Bulk Rename Utility How-To's

IMDB ID renaming

Postby intertet » Fri Nov 11, 2022 8:07 pm

Hello Team,

I'm scratching my head on how to accomplish this, but my searching-fu is failing me.

I ran a batch rename from another app and it failed mid-rename. This was because I was using the wrong tool for the job.

Now trying to correct this, I'd like to find all folders with this format:
Crimson Peak (2015) -tt2554274

And rename them to this format:
Crimson Peak (2015) - {imdb-tt2554274}

My thinking was to find regex that would identify "tt-###" and add "{imdb-" before the tt and "}" at the end.
The logic would find the string of numbers rather than counting digits for the last curly bracket because in rare instances there are 8 numbers, mostly 7.


Has anyone else run into something similar to get me going in the right direction?
Every bit of regex I could muster wasn't able to match the entire IMDB ID.

Thanks in advance!
intertet
 
Posts: 3
Joined: Sat Apr 16, 2022 6:04 am

Re: IMDB ID renaming

Postby Luuk » Fri Nov 11, 2022 8:59 pm

If to only rename the folders, then Filters(12) should not have a checkmark inside for "Files".
For ' -tt', then 7-or-8 digits at the end, Regex(1) can use a "Match" and "Replace" like...
(.+ )(-tt\d{7,8})$
\1- {imdb\2}

If to only rename when also having (yyyy) before the ends, can change the "Match" to...
(.+\((?:19|20)\d\d\) )(-tt\d{7,8})$
Luuk
 
Posts: 706
Joined: Fri Feb 21, 2020 10:58 pm

Re: IMDB ID renaming

Postby intertet » Sat Nov 12, 2022 10:06 am

Thank you SO much.
You don't know how many hours you have saved this stranger.

Had over 5000 to correct and thanks to you this took less than 5 mins to complete. :)
intertet
 
Posts: 3
Joined: Sat Apr 16, 2022 6:04 am


Return to How-To