It is currently March 28th, 2024, 12:12 pm



Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: Auto Replace Links From .txt File.
PostPosted: February 6th, 2023, 4:13 pm 

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

My template for hostlinks has this structure:

url = {#linkUrlWithFileName#}

That is due to the coding on the wordpress website in this case.

Anyway, I wanted to test the feature to replace links auto in TM by having the new links in a txt file - I did that and TM did find the txt but replaced 0 files.

Is this because there literally is
url = https://tezfiles.com/fille/22222

in the leeched post?

This is the template for posting to this blog.
Code:
<!-- wp:code --><pre class="wp-block-code"><code>[themaCreator]
name = {#fileName#}
{#cover#}
{#preview#}
{#links#}
size = {#fileSizeInBytes#}
format = {#fileExtension#}
width = {#videoWidth#}
height = {#videoHeight#}
format = {#videoFormat#}
duration = {#videoDuration#}
aspect_ratio = {#videoAspectRatio#}
extension = {#fileExtension#}
quality = {#videoQualityText#}</code></pre><!-- /wp:code -->


Cover Tab
Code:
cover = {#imageDirectUrl#}
cover_thumb = {#imageThumbUrl#}


Preview Tab
Code:
preview = {#imageDirectUrl#}
preview_thumb = {#imageThumbUrl#}


Hostlinks tab:
Code:
url = {#linkUrlWithFileName#}


The txt file contains only the link urs with filename and nothing else.


Top
 Profile  
Reply with quote  
 Post subject: Re: Auto Replace Links
PostPosted: February 6th, 2023, 5:07 pm 
Site Admin
User avatar

Joined: March 10th, 2011, 11:14 pm
Posts: 12629
Location: Earth
The links in your site must also have filename in them.

Your example looks without filename.

Looks like they were posted in wrong format in the past.

It will only work for future links which you will be posted correctly with filename (once they are dead).

For those old links you would need to replace them via GUI.

_________________
themaPoster | themaCreator | themaManager | themaLeecher | themaRegister


Top
 Profile  
Reply with quote  
 Post subject: Re: Auto Replace Links From .txt File.
PostPosted: February 6th, 2023, 5:25 pm 

Joined: November 23rd, 2014, 6:31 am
Posts: 276
The files are uploaded today and brand new

do they have to be "dead" before they are replacable ? because they are online maybe thats why?

And they do have filename like this url = https://tezfiles.com/file/d595168bc98ae ... teaser.mp4


Top
 Profile  
Reply with quote  
 Post subject: Re: Auto Replace Links From .txt File.
PostPosted: February 6th, 2023, 5:32 pm 

Joined: November 23rd, 2014, 6:31 am
Posts: 276
i think it works now it found 4 links and I have 4 links in txt - its problem on the WP side I think - will investigate.


Top
 Profile  
Reply with quote  
 Post subject: Re: Auto Replace Links From .txt File.
PostPosted: February 6th, 2023, 5:35 pm 
Site Admin
User avatar

Joined: March 10th, 2011, 11:14 pm
Posts: 12629
Location: Earth
The links don't need to be dead.

PM me URL with login details and .txt file which you are using.

Could take a look.

_________________
themaPoster | themaCreator | themaManager | themaLeecher | themaRegister


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 14 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