Rename Movie Folders and Files inside

Bulk Rename Utility How-To's

Rename Movie Folders and Files inside

Postby St0ney » Sun Feb 25, 2024 12:33 am

Looking to Batch rename movie Folders and the Files inside each folder with the same Name as the New Folder name.

Example Folder:
Jim The James Foley Story (2016) [1080p] [WEBRip] [5.1] [YTS.MX]

Would like it renamed to:
Jim The James Foley Story (2016)

(So everything deleted after the Date in Brackets.

Then All files inside this folder renamed with the New folders name.

From:
Jim.The.James.Foley.Story.2016.1080p.WEBRip.x264.AAC5.1-[YTS.MX].mp4
Jim.The.James.Foley.Story.2016.1080p.WEBRip.x264.AAC5.1-[YTS.MX].srt

Renamed to: (and keeping the file extension)
Jim The James Foley Story (2016).mp4
Jim The James Foley Story (2016).srt

Thanks in Advance - I Searched the net high and Low to figure this out...
St0ney
 
Posts: 2
Joined: Sun Feb 25, 2024 12:25 am

Re: Rename Movie Folders and Files inside

Postby Admin » Wed Feb 28, 2024 12:18 am

Hi , you can use Simple Regex to truncate folder names:

RegEx (1) -> enable simple flag
Match: %1 (%2) %3
Replace: %1 (%2)

Then append folder name (9) to add to file names.
Admin
Site Admin
 
Posts: 2354
Joined: Tue Mar 08, 2005 8:39 pm

Re: Rename Movie Folders and Files inside

Postby St0ney » Tue Mar 05, 2024 3:46 am

Nice I'll give it a Try - and Thank YOU ! :D
St0ney
 
Posts: 2
Joined: Sun Feb 25, 2024 12:25 am

Re: Rename Movie Folders and Files inside

Postby robsonmark » Thu Mar 28, 2024 11:42 am

Hi,
I am looking to Rename a lot of Movie Files.
ie
movie123 Series 1 Episode 1 - Episodename.mp4
to
movie123 S01E01 - Episodename.mp4
i also want it to continue /automate the Episode Number

It Sort of works with
Replace: Season 2 Episode
With S02E and use the Numbering
Mode Insert
Start 01
But it renames to. movie123 S01E 01 - Episodename.mp4
with a space after the "E" i would like to remove the space

Any help or better /correct ways would be great
Thanks
Mark
robsonmark
 
Posts: 1
Joined: Thu Mar 28, 2024 11:36 am

Season#Episode# --> S0#E0#

Postby Luuk » Thu Mar 28, 2024 7:51 pm

@Mark: In Replace(3) the Replace-box just needs a trailing-space, or it wont be replaced.

To automate everything: RegEx(1) needs a checkmark for 'v2', with a "Match" and "Replace" like...
Series (\d+) Episode (\d+)(?X):0*(?=\d{2,})/g
S:0$1E:0$2(?X)
Luuk
 
Posts: 706
Joined: Fri Feb 21, 2020 10:58 pm

Season#Episode# --> S0#E0#

Postby Luuk » Thu Mar 28, 2024 11:16 pm

@Mark: If both "Series" and "Season" should be replaced, can use a "Match" and "Replace" like...
(?:Series|Season) (\d+) Episode (\d+)(?X):0*(?=\d{2,})/g
S:0$1E:0$2(?X)

movie Series 1 Episode 1 - Episode -----------> movie S01E01 - Episode
movie Series 0001 Episode 0002 - Episode ---> movie S01E02 - Episode
movie Series 1 Episode 099 - Episode ---------> movie S01E99 - Episode
movie Series 021 Episode 1 - Episode ---------> movie S21E01 - Episode
movie Season 99 Episode 09 - Episode --------> movie S99E09 - Episode
movie Season 1 Episode 999 - Episode --------> movie S01E999 - Episode
Luuk
 
Posts: 706
Joined: Fri Feb 21, 2020 10:58 pm


Return to How-To