themaCreator
http://creator.themasoftware.com/forum/

Rename as per folder.
http://creator.themasoftware.com/forum/viewtopic.php?f=4&t=6947
Page 1 of 1

Author:  CooL [ September 13th, 2020, 6:53 pm ]
Post subject:  Rename as per folder.

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

Author:  Freddy [ September 13th, 2020, 6:59 pm ]
Post subject:  Re: rename as per folder

That really just looks like a random filename.

You can just enable to randomize filenames in upload settings.

Author:  CooL [ September 13th, 2020, 7:00 pm ]
Post subject:  Re: rename as per folder

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

Author:  Freddy [ September 13th, 2020, 7:01 pm ]
Post subject:  Re: Rename as per folder.

Your example pretty much looks like random letters and numbers.

No one will know the difference.

This is not possible with regex.

Author:  Freddy [ September 13th, 2020, 7:06 pm ]
Post subject:  Re: Rename as per folder.

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".

Author:  CooL [ September 14th, 2020, 10:10 am ]
Post subject:  Re: Rename as per folder.

"[^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.

Author:  Freddy [ September 14th, 2020, 1:13 pm ]
Post subject:  Re: Rename as per folder.

That regex does not seem to work.

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

Page 1 of 1 All times are UTC
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/