themaLeecher
http://leecher.themasoftware.com/forum/

Replacements help topic.
http://leecher.themasoftware.com/forum/viewtopic.php?f=4&t=5860
Page 19 of 19

Author:  Freddy [ June 24th, 2023, 7:18 pm ]
Post subject:  Re: Replacements help topic.

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.

Author:  Freedom35 [ June 25th, 2023, 1:46 pm ]
Post subject:  Re: Replacements help topic.

Thank You, it works great and I can add duplicate replacement.

Author:  Crackpot [ October 18th, 2023, 8:01 pm ]
Post subject:  Re: Replacements help topic.

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

Author:  Freddy [ October 19th, 2023, 1:19 pm ]
Post subject:  Re: Replacements help topic.

Yes, in "WEBSITES" -> select that site -> "Words" tab -> "Wanted words" add this with "Regex" option enabled:

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

Author:  Crackpot [ October 19th, 2023, 1:52 pm ]
Post subject:  Re: Replacements help topic.

thank you so much

Author:  myfear [ January 23rd, 2024, 12:01 pm ]
Post subject:  Regex to remove '[' and ']' for filename within links.

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!

Author:  Freddy [ January 23rd, 2024, 12:31 pm ]
Post subject:  Re: regex to remove '[' and ']' for filename within links

Hi,

should be possible.

Will take a look a bit later at the replacement.

Author:  myfear [ January 23rd, 2024, 6:19 pm ]
Post subject:  Re: regex to remove '[' and ']' for filename within links

Freddy wrote:
Hi,

should be possible.

Will take a look a bit later at the replacement.


Thank you, much appreciated

Author:  Freddy [ January 24th, 2024, 8:51 am ]
Post subject:  Re: regex to remove '[' and ']' for filename within links

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 2528 times ]

Author:  myfear [ January 24th, 2024, 7:42 pm ]
Post subject:  Re: Regex to remove '[' and ']' for filename within links.

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!

Author:  Freddy [ January 24th, 2024, 11:22 pm ]
Post subject:  Re: Regex to remove '[' and ']' for filename within links.

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.

Author:  myfear [ February 25th, 2024, 7:51 pm ]
Post subject:  Re: Replacements help topic.

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

Author:  Freddy [ February 25th, 2024, 8:50 pm ]
Post subject:  Re: Replacements help topic.

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.

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