It is currently December 13th, 2024, 10:09 am



Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: Replacements (bad URL).
PostPosted: March 7th, 2019, 10:35 pm 

Joined: November 23rd, 2014, 6:31 am
Posts: 299
Hi.

I need replacements help.

I have some words I want to rename when using tc or when posting with tp.

The problem I have is when I add a replacement to message i.e movie.title.here replace with m0v1e.t!tl3.h3r3

That makes the url for screenshots not working anymore. both tc+tp rename those words in ALL message text.

TC always starts with generating thumbs + upload to image host then process the file and upload to filehost, then at last the final post is made and the replacements are added.

is there any way to have these replacements applied before making thumbs etc?


Top
 Profile  
Reply with quote  
 Post subject: Re: Replacements
PostPosted: March 8th, 2019, 7:27 am 
Site Admin
User avatar

Joined: March 10th, 2011, 11:14 pm
Posts: 12979
Location: Earth
You can write replacement which would not replace in URLs.

Could you give one full example of message before and after.

_________________
themaPoster | themaCreator | themaManager | themaLeecher | themaRegister


Top
 Profile  
Reply with quote  
 Post subject: Re: Replacements
PostPosted: March 8th, 2019, 8:55 am 

Joined: November 23rd, 2014, 6:31 am
Posts: 299
After Replacements - Not working thumbnails because of the renaming
Code:
[b]d3v1lsf1lm 19 03 07 dava foxx[/b]

[url=https://pixhost.to/show/72/99115402_d3v1lsf1lm-19-03-07-dava-foxx.jpg][img]https://t29.pixhost.to/thumbs/72/99115402_d3v1lsf1lm-19-03-07-dava-foxx.jpg[/img][/url]

[b]General Technical Stuff:[/b]
[b]Size[/b]: 1.3 GB
[b]Format[/b]: mp4
[b]Duration[/b]: 00:28:17
[b]Resolution[/b]: 1920x1080
[b]Avg. Bitrate[/b]:6358 Kbps

[url]https://filefox.cc/bt2cvu98qjgu[/url]
[url]https://filefox.cc/zwlu8xno1jve[/url]


Before Replacements - working screens because its originally uploaded to pixhost with that name.
Code:
[b]devilsfilm 19 03 07 dava foxx[/b]

[url=https://pixhost.to/show/72/99115402_devilsfilm-19-03-07-dava-foxx.jpg][img]https://t29.pixhost.to/thumbs/72/99115402_devilsfilm-19-03-07-dava-foxx.jpg[/img][/url]

[b]General Technical Stuff:[/b]
[b]Size[/b]: 1.3 GB
[b]Format[/b]: mp4
[b]Duration[/b]: 00:28:17
[b]Resolution[/b]: 1920x1080
[b]Avg. Bitrate[/b]:6358 Kbps

[url]https://filefox.cc/bt2cvu98qjgu[/url]
[url]https://filefox.cc/zwlu8xno1jve[/url]


Top
 Profile  
Reply with quote  
 Post subject: Re: Replacements
PostPosted: March 8th, 2019, 9:22 am 
Site Admin
User avatar

Joined: March 10th, 2011, 11:14 pm
Posts: 12979
Location: Earth
The URLs always have _ before the devilsfilm.

You can make as simple as:

Search for:
Code:
([^_])devilsfilm


Replace with:
Code:
$1d3v1lsf1lm


Enable regex search.

Tested. Works fine. URLs are not affected, only first line.

Or you could just replace in first line if it's always in first line:

Search for:
Code:
^(.*?)devilsfilm


Replace with:
Code:
$1d3v1lsf1lm


Enable regex search.

_________________
themaPoster | themaCreator | themaManager | themaLeecher | themaRegister


Top
 Profile  
Reply with quote  
 Post subject: Re: Replacements
PostPosted: March 8th, 2019, 9:56 pm 

Joined: November 23rd, 2014, 6:31 am
Posts: 299
thanks this works :)


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

Who is online

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