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



Post new topic Reply to topic  [ 76 posts ]  Go to page Previous  1, 2, 3, 4, 5, 6  Next
Author Message
 Post subject: Remove characters between [] in title.
PostPosted: January 9th, 2023, 12:53 pm 

Joined: January 16th, 2021, 9:56 pm
Posts: 42
Hi

I have some files with [xyz] in foldertitle, do you have some ideas how i can remove them from subject by posting?

exemples:
.....1970.1080p.BluRay.x264-GAZER.[CcYMsRffL6]
.....2022.1080p.WEBRip.x264.AAC-AOC.[lv0zPqmiTy]


Top
 Profile  
Reply with quote  
 Post subject: Re: remove characters between [] in title
PostPosted: January 9th, 2023, 2:43 pm 
Site Admin
User avatar

Joined: March 10th, 2011, 11:14 pm
Posts: 12630
Location: Earth
Hi,

just add a replacement under "Subject" tab:

Search for:
Code:
\[.+?\]


Replace with:
Code:
(leave empty)


Enable regex search.

_________________
themaPoster | themaCreator | themaManager | themaLeecher | themaRegister


Top
 Profile  
Reply with quote  
 Post subject: Re: Replacements help.
PostPosted: January 27th, 2023, 10:48 am 

Joined: May 5th, 2011, 9:45 am
Posts: 124
Hi Freddy!
Please help with tags replacement.

Input
Code:
<tags>{#fileName#}, {#source-javlibrary-maker#}, </tags>

File names may be vary:
THTP-0810
ID-03
BAB-082

I have tags like this now:
<tags>THTP, 0810, Some maker, </tags>
<tags>ID, 03, Some maker, </tags>
<tags>BAB, 082, Some maker, </tags>


Output
Code:
<tags>THTP, Some maker, </tags>
<tags>ID, Some maker, </tags>
<tags>BAB, Some maker, </tags>

Need to remove tag with numbers.


Top
 Profile  
Reply with quote  
 Post subject: Re: Replacements help.
PostPosted: January 27th, 2023, 1:41 pm 
Site Admin
User avatar

Joined: March 10th, 2011, 11:14 pm
Posts: 12630
Location: Earth
Add this replacement under "Tags" tab:

Search for:
Code:
[0-9]+\s*,


Replace with:
Code:
(leave empty)


Enable regex search.

_________________
themaPoster | themaCreator | themaManager | themaLeecher | themaRegister


Top
 Profile  
Reply with quote  
 Post subject: Re: Replacements help.
PostPosted: January 27th, 2023, 4:30 pm 

Joined: May 5th, 2011, 9:45 am
Posts: 124
With your code I got
Code:
<tags>THTP- Some maker </tags>
<tags>ID- Some maker </tags>
<tags>BAB- Some maker </tags>

Had to add another replacements
Search for:
Code:
-

Replace with:
Code:
,

and regex Search for:
Code:
$

Replace with:
Code:
,

Perhaps this can be combined into one expression?
Sorry I'm a noob in regex.


Top
 Profile  
Reply with quote  
 Post subject: Re: Replacements help.
PostPosted: January 27th, 2023, 5:32 pm 
Site Admin
User avatar

Joined: March 10th, 2011, 11:14 pm
Posts: 12630
Location: Earth
Both are fine, but there is no need for comma at the end. It will be automatically removed anyway later.

_________________
themaPoster | themaCreator | themaManager | themaLeecher | themaRegister


Top
 Profile  
Reply with quote  
 Post subject: Re: Replacements help.
PostPosted: January 27th, 2023, 5:43 pm 

Joined: May 5th, 2011, 9:45 am
Posts: 124
Freddy wrote:
Both are fine, but there is no need for comma at the end. It will be automatically removed anyway later.

I manually add more tags later, the comma at the end saves two keystrokes for me :D
Thank you!


Top
 Profile  
Reply with quote  
 Post subject: Re: Replacements help.
PostPosted: May 14th, 2023, 5:08 pm 

Joined: November 23rd, 2014, 6:31 am
Posts: 276
I struggle with regex to work out how to rename files.

For example:

Code:
lilydaisyphillips-31-12-2022-2726567804-HAPPY NEW YEARs EVE.jpg


I want it to be:
Code:
lilydaisyphillips - 2022.12.31 2726567804-HAPPY NEW YEARs EVE.jpg


how can I fix that no matter what the first part is - most important is the re-placing of the numbers in the date.


Top
 Profile  
Reply with quote  
 Post subject: Re: Replacements help.
PostPosted: May 14th, 2023, 8:43 pm 
Site Admin
User avatar

Joined: March 10th, 2011, 11:14 pm
Posts: 12630
Location: Earth
Search for:
Code:
(.+?).([0-9]{2}).([0-9]{2}).([0-9]{4}).


Replace with (there is a space at the end):
Code:
$1 - $4.$3.$2


Enable regex search.

_________________
themaPoster | themaCreator | themaManager | themaLeecher | themaRegister


Top
 Profile  
Reply with quote  
 Post subject: Re: Replacements help.
PostPosted: June 18th, 2023, 9:21 am 

Joined: August 17th, 2016, 8:29 pm
Posts: 242
Beforr
Code:
 [leech=https://rapidgator.net/file/6e19e0c5e5173b462246d419f326dd84/Kingdom.of.Wreck.Business.FitGirl.Repack.part1.rar]Kingdom of Wreck Business [FitGirl Repack].part1.rar[/leech]


After
Code:
Kingdom of Wreck Business [FitGirl Repack].part1.rar
[code] https://rapidgator.net/file/6e19e0c5e5173b462246d419f326dd84/Kingdom.of.Wreck.Business.FitGirl.Repack.part1.rar[/code]


Top
 Profile  
Reply with quote  
 Post subject: Re: Replacements help.
PostPosted: June 18th, 2023, 2:57 pm 
Site Admin
User avatar

Joined: March 10th, 2011, 11:14 pm
Posts: 12630
Location: Earth
Search for:
Code:
\[leech=(.+?)\](.+?)\[/leech\]


Replace with:
Code:
$2\n[code]$1[/code]


Enable regex search.

_________________
themaPoster | themaCreator | themaManager | themaLeecher | themaRegister


Top
 Profile  
Reply with quote  
 Post subject: Re: Replacements help.
PostPosted: August 19th, 2023, 4:21 am 

Joined: August 26th, 2019, 6:19 pm
Posts: 2
replace filename with foldername


Top
 Profile  
Reply with quote  
 Post subject: Re: Replacements help.
PostPosted: August 19th, 2023, 6:53 am 
Site Admin
User avatar

Joined: March 10th, 2011, 11:14 pm
Posts: 12630
Location: Earth
If you mean in subject then just add this line in "Main" template:

Code:
<subject>{#folderName#}</subject>

_________________
themaPoster | themaCreator | themaManager | themaLeecher | themaRegister


Top
 Profile  
Reply with quote  
 Post subject: Re: Replacements help.
PostPosted: August 19th, 2023, 11:53 pm 

Joined: August 26th, 2019, 6:19 pm
Posts: 2
i mean in filehost title

for example:

foldername: abc
filename: xyz

result:

k2s.cc/file/xxxxx/abc


Top
 Profile  
Reply with quote  
 Post subject: Re: Replacements help.
PostPosted: August 20th, 2023, 7:36 pm 
Site Admin
User avatar

Joined: March 10th, 2011, 11:14 pm
Posts: 12630
Location: Earth
In "TEMPLATES" -> select needed post type -> {#fileUploadName#} tab sub-template (the last tab).

Set to:
Code:
{#folderName#}

_________________
themaPoster | themaCreator | themaManager | themaLeecher | themaRegister


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 76 posts ]  Go to page Previous  1, 2, 3, 4, 5, 6  Next

Who is online

Users browsing this forum: No registered users and 15 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