It is currently March 28th, 2024, 11:58 pm



Post new topic Reply to topic  [ 7 posts ] 
Author Message
 Post subject: Rename as per folder.
PostPosted: September 13th, 2020, 6:53 pm 

Joined: August 11th, 2011, 9:36 am
Posts: 14
Hi is there any possibility to rename files as per details mentioned below.

tilte name - Room 104 S04E08 No Dice 720p AMZN WEB-DL DD+5 1 H 264-NTb


file name - Ro10S0NoDi72AMWEDLDD1H26NT.rar


Top
 Profile  
Reply with quote  
 Post subject: Re: rename as per folder
PostPosted: September 13th, 2020, 6:59 pm 
Site Admin
User avatar

Joined: March 10th, 2011, 11:14 pm
Posts: 12630
Location: Earth
That really just looks like a random filename.

You can just enable to randomize filenames in upload settings.

_________________
themaPoster | themaCreator | themaManager | themaLeecher | themaRegister


Top
 Profile  
Reply with quote  
 Post subject: Re: rename as per folder
PostPosted: September 13th, 2020, 7:00 pm 

Joined: August 11th, 2011, 9:36 am
Posts: 14
Freddy wrote:
That really just looks like a random filename.

You can just enable to randomize filenames in upload settings.


but random filename dont use regex as per title and themacreator rename as 6gmvkw9x.rar


Top
 Profile  
Reply with quote  
 Post subject: Re: Rename as per folder.
PostPosted: September 13th, 2020, 7:01 pm 
Site Admin
User avatar

Joined: March 10th, 2011, 11:14 pm
Posts: 12630
Location: Earth
Your example pretty much looks like random letters and numbers.

No one will know the difference.

This is not possible with regex.

_________________
themaPoster | themaCreator | themaManager | themaLeecher | themaRegister


Top
 Profile  
Reply with quote  
 Post subject: Re: Rename as per folder.
PostPosted: September 13th, 2020, 7:06 pm 
Site Admin
User avatar

Joined: March 10th, 2011, 11:14 pm
Posts: 12630
Location: Earth
You can try this (it will use each second character, it won't be 100% the same as your example, but something similar):

Search for:
Code:
(.).


Replace with:
Code:
$1


Enable regex search.

And add a separate simple (not regex) to remove spaces (or dots or underscores, depends on your settings).

Add the replacement under "Subject" tab with type "Filename".

_________________
themaPoster | themaCreator | themaManager | themaLeecher | themaRegister


Top
 Profile  
Reply with quote  
 Post subject: Re: Rename as per folder.
PostPosted: September 14th, 2020, 10:10 am 

Joined: August 11th, 2011, 9:36 am
Posts: 14
"[^a-z\\d]*(?:(S)0*(\\d+)(E)0*(\\d+)|([a-z\\d]{1,2}))[^.-]*(?:[.-]|$)"

this is working regex but i dont know to set this on thema.


Top
 Profile  
Reply with quote  
 Post subject: Re: Rename as per folder.
PostPosted: September 14th, 2020, 1:13 pm 
Site Admin
User avatar

Joined: March 10th, 2011, 11:14 pm
Posts: 12630
Location: Earth
That regex does not seem to work.

Try mine. It does pretty much the same as in your example.

_________________
themaPoster | themaCreator | themaManager | themaLeecher | themaRegister


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 7 posts ] 

Who is online

Users browsing this forum: No registered users and 9 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Theme designed by stylerbb.net © 2008
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
All times are UTC