It is currently April 27th, 2024, 1:50 pm



Post new topic Reply to topic  [ 283 posts ]  Go to page Previous  1 ... 15, 16, 17, 18, 19
Author Message
 Post subject: Re: Replacements help topic.
PostPosted: June 24th, 2023, 7:18 pm 
Site Admin
User avatar

Joined: March 10th, 2011, 11:14 pm
Posts: 12646
Location: Earth
The words at the end can always be different I guess.

I can't think any way with a single replacement.

You can add this replacement multiple times. Each time it's applied it would replace last "space" with "+".

If there could be 5 words at the end you should add it five times.

Search for:
Code:
https://website.com/search/(.+?)[ ]


Replace with:
Code:
https://website.com/search/$1+


Enable regex search.

However I noticed you can't add replacement with the same search at the moment.

Will remove this restriction from next update since it can be useful to have the same replacements.

_________________
themaPoster | themaCreator | themaManager | themaLeecher | themaRegister


Top
 Profile  
Reply with quote  
 Post subject: Re: Replacements help topic.
PostPosted: June 25th, 2023, 1:46 pm 

Joined: December 30th, 2013, 3:54 pm
Posts: 319
Thank You, it works great and I can add duplicate replacement.


Top
 Profile  
Reply with quote  
 Post subject: Re: Replacements help topic.
PostPosted: October 18th, 2023, 8:01 pm 

Joined: March 30th, 2015, 12:31 pm
Posts: 670
rss title list
Code:
The.Burning.Girls.S01.720p.AMZN.WEB-DL.DDP5.1.H.264-FLUX

The.Burning.Girls.S01E01.720p.AMZN.WEB-DL.DDP5.1.H.264-FLUX


when TL leech from RSS I want to leech only, basically season pack. can we do that?

Code:
The.Burning.Girls.S01.720p.AMZN.WEB-DL.DDP5.1.H.264-FLUX


Top
 Profile  
Reply with quote  
 Post subject: Re: Replacements help topic.
PostPosted: October 19th, 2023, 1:19 pm 
Site Admin
User avatar

Joined: March 10th, 2011, 11:14 pm
Posts: 12646
Location: Earth
Yes, in "WEBSITES" -> select that site -> "Words" tab -> "Wanted words" add this with "Regex" option enabled:

Code:
(\s|\.)S[0-9]+(\s|\.)

_________________
themaPoster | themaCreator | themaManager | themaLeecher | themaRegister


Top
 Profile  
Reply with quote  
 Post subject: Re: Replacements help topic.
PostPosted: October 19th, 2023, 1:52 pm 

Joined: March 30th, 2015, 12:31 pm
Posts: 670
thank you so much


Top
 Profile  
Reply with quote  
 Post subject: Regex to remove '[' and ']' for filename within links.
PostPosted: January 23rd, 2024, 12:01 pm 

Joined: January 10th, 2021, 12:46 pm
Posts: 26
Hi there,

Sorry if this has been asked already. The '[' and ']' within filenames breaks some of the link replacing/finding on thema programmes.

Is it possible to create a replacement for those characters within the filename of a link that I can run and process.

Example:

Code:
https://1fichier.com/?vwq2h3s1clr4r6gcj8x7/Hero.of.Fate.[010082501DAF2800][v65536][US].nsp.rar


Becomes
Code:
https://1fichier.com/?vwq2h3s1clr4r6gcj8x7/Hero.of.Fate.(010082501DAF2800)(v65536)(US).nsp.rar


I need it to only find '[' and ']' characters within the 1fichier links or filehost url and replace them with their corresponding '(' or ')' without destroying any other [ ] for code etc.

Thanks!


Top
 Profile  
Reply with quote  
 Post subject: Re: regex to remove '[' and ']' for filename within links
PostPosted: January 23rd, 2024, 12:31 pm 
Site Admin
User avatar

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

should be possible.

Will take a look a bit later at the replacement.

_________________
themaPoster | themaCreator | themaManager | themaLeecher | themaRegister


Top
 Profile  
Reply with quote  
 Post subject: Re: regex to remove '[' and ']' for filename within links
PostPosted: January 23rd, 2024, 6:19 pm 

Joined: January 10th, 2021, 12:46 pm
Posts: 26
Freddy wrote:
Hi,

should be possible.

Will take a look a bit later at the replacement.


Thank you, much appreciated


Top
 Profile  
Reply with quote  
 Post subject: Re: regex to remove '[' and ']' for filename within links
PostPosted: January 24th, 2024, 8:51 am 
Site Admin
User avatar

Joined: March 10th, 2011, 11:14 pm
Posts: 12646
Location: Earth
This replacement will deal with one of the brackets:

Search for:
Code:
(https?://1fichier.com.+?)\[(.+?)\](.+?(rar))


Replace with:
Code:
$1($2)$3


Enable regex search.

Since there are three brackets in your example add the same replacement three times.

Enable to "Apply to all new leeched messages" or assign all three to needed sites only.

Attaching screenshot how it should look.


Attachments:
Capture.PNG
Capture.PNG [ 13.86 KiB | Viewed 2293 times ]

_________________
themaPoster | themaCreator | themaManager | themaLeecher | themaRegister
Top
 Profile  
Reply with quote  
 Post subject: Re: Regex to remove '[' and ']' for filename within links.
PostPosted: January 24th, 2024, 7:42 pm 

Joined: January 10th, 2021, 12:46 pm
Posts: 26
Thanks so much Freddy, that worked perfectly!

I can see I just adjust the filetype as needed too to apply to the filetype in question in case it changes for others links.

If there was a gap (space) in the link do you know what regex I would use to replace it with a '.'

For example:

Code:
https://1fichier.com/?rxp62o8sc3t14l27k0m7/Fear.or.Evil.Nightmare. Horror.Scary.Game Phobia.2023.Simulator.Hunter.Games.[0100B17019356000][v0][US].nsp.rar


I'm definitely going to read up on this and educate myself a bit more!

Thank you!


Top
 Profile  
Reply with quote  
 Post subject: Re: Regex to remove '[' and ']' for filename within links.
PostPosted: January 24th, 2024, 11:22 pm 
Site Admin
User avatar

Joined: March 10th, 2011, 11:14 pm
Posts: 12646
Location: Earth
You can include multiple file types in one replacement separated with |, like this for example:

Search for:
Code:
(https?://1fichier.com.+?)\[(.+?)\](.+?(rar|mkv|zip|mp4))


Replace with:
Code:
$1($2)$3


Enable regex search.

For space this should work, I just included a bit more ending characters so it won't remove them where not needed.

Search for:
Code:
(https?://1fichier.com.+?) (.+?(rar|\[|\]|\n))


Replace with:
Code:
$1.$2


Enable regex search.

You would also need to add it multiple times since it deals with one space.

_________________
themaPoster | themaCreator | themaManager | themaLeecher | themaRegister


Top
 Profile  
Reply with quote  
 Post subject: Re: Replacements help topic.
PostPosted: February 25th, 2024, 7:51 pm 

Joined: January 10th, 2021, 12:46 pm
Posts: 26
Hi, I am wanting to completely remove 1fichier posts if it contains 'fileoffline' for example:

Code:
[url=https://1fichier.com/?iszoccf3zyslszg8qh3v?&af=795144/fileoffline]1fichier[/url]


I want to achieve something similar to (?i)\[url=https://1fichier.com(.+?)\](.+?)\[/url\]

But I need it to remove it ONLY if the link contains fileoffline

Is that possible? Ideally it would completely remove the whole line if that is possible?

Thanks in advance


Top
 Profile  
Reply with quote  
 Post subject: Re: Replacements help topic.
PostPosted: February 25th, 2024, 8:50 pm 
Site Admin
User avatar

Joined: March 10th, 2011, 11:14 pm
Posts: 12646
Location: Earth
This would remove the whole line:

Search for:
Code:
.+1fichier.com.+fileoffline.*\n


Replace with:
Code:
(leave empty)


Enable regex search.

Enable to "Apply to all new leeched messages" or assign to specific site.

_________________
themaPoster | themaCreator | themaManager | themaLeecher | themaRegister


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 283 posts ]  Go to page Previous  1 ... 15, 16, 17, 18, 19

Who is online

Users browsing this forum: No registered users and 20 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:  
Theme designed by stylerbb.net © 2008
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
All times are UTC