It is currently March 28th, 2024, 10:18 am



Post new topic Reply to topic  [ 7 posts ] 
Author Message
 Post subject: Auto Generate Tags Without Commas.
PostPosted: April 6th, 2022, 4:32 pm 

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

I need to find out if it is possible to generate tags for peoples names.

For example Tom Cruise - Cocktail.mp4 would be tags Tom,Cruise,Cocktail but I would like to have Tom Cruise generated as a tag.

Is there any solution for generating such a tag automatically?
Its for posting to WP.


Top
 Profile  
Reply with quote  
 Post subject: Re: Auto Generate Tags
PostPosted: April 6th, 2022, 4:55 pm 
Site Admin
User avatar

Joined: March 10th, 2011, 11:14 pm
Posts: 12629
Location: Earth
You could add replacement to replace "Tom,Cruise" with "Tom Cruise" under "Tags" replacements.

If it's always the first two tags, you can add regex replacement to replace the first comma only with space.

Search for:
Code:
(.+?),(.+?),


Replace with:
Code:
$1 $2,


Enable regex search.

It really doesn't matter. "Tom,Cruiser" or "Tom Cruise" will be the same for SEO. Both words are in tags.

_________________
themaPoster | themaCreator | themaManager | themaLeecher | themaRegister


Top
 Profile  
Reply with quote  
 Post subject: Re: Auto Generate Tags Without Commas.
PostPosted: April 6th, 2022, 6:18 pm 

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

It is not for SEO - I have no SEO clue at all.

It is for organizing the website using the tags.

What about this:

Tom Cruise, Bruce Willis - Cocktail Movie Title.mp4

That would generate Tom,Cruise,Bruce,Willis,Cocktail,Movie,Title but I would like to have it generate
Tom Cruise,Bruce Willis,Cocktail,Movie,Title

so everything before the " - " but seperated with a ", " should be a tag.

Purpose is to generate tags for full names of any performers instead of having it split with a comma.


Top
 Profile  
Reply with quote  
 Post subject: Re: Auto Generate Tags Without Commas.
PostPosted: April 6th, 2022, 7:28 pm 
Site Admin
User avatar

Joined: March 10th, 2011, 11:14 pm
Posts: 12629
Location: Earth
That's not possible.

I can't just randomly guess where full name starts and where it ends.

Have your filenames like this:
Code:
Movie Title Year... End Does Not Matter


Then disable tags generation from filenames and just add this line in "Main" template to get actors as tags from IMDB (they are full names separated by comma as you want):
Code:
<tags>{#imdbActors#}, {#imdbTitle#}</tags>


That's the only way.

_________________
themaPoster | themaCreator | themaManager | themaLeecher | themaRegister


Top
 Profile  
Reply with quote  
 Post subject: Re: Auto Generate Tags Without Commas.
PostPosted: April 6th, 2022, 7:38 pm 

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

Full name ends before the comma and next full name starts after the comma and ends before the dash.
Could be many full names not only 1 or 2.

Tom Cruise, Bruce Willis - Movie Titl Dont Matter.mp4
Tags wanted:
Code:
Tom Cruise, Bruce Willis, Movie, Titl, Dont, Matter


Jim Carrey, Tom Berenger, Harrison Ford, Cameron Diaz - Movie Is Not Good.mp4
Tags Wanted:
Code:
Tom Berenger, Harrison Ford, Cameron Diaz, Movie, Is, Not, Good


ill look into some more regex - its not for imdb but for adult content - just used normal movie stuff as example - should have said that in first post sorry.


Top
 Profile  
Reply with quote  
 Post subject: Re: Auto Generate Tags Without Commas.
PostPosted: April 7th, 2022, 5:18 am 
Site Admin
User avatar

Joined: March 10th, 2011, 11:14 pm
Posts: 12629
Location: Earth
You would need to disable generate tags from filename option.

Add this line in your "Main" template:
Code:
<tags>{#fileName#}</tags>


Add this replacement for Tags:

Search for:
Code:
-


Replace with:
Code:
,


Simple replacement (not regex).

The result will be:
Code:
Tom Cruise, Bruce Willis, Movie Title


Title will be one tag, not possible otherwise, but it's even better since you want for organizing (won't be bunch of random words).

_________________
themaPoster | themaCreator | themaManager | themaLeecher | themaRegister


Top
 Profile  
Reply with quote  
 Post subject: Re: Auto Generate Tags Without Commas.
PostPosted: April 7th, 2022, 5:26 pm 

Joined: November 23rd, 2014, 6:31 am
Posts: 276
that will be even better than i thought! thank you.

best result for me would be the Movie Title as 1 tag, and all the actor names as 1 tag per name and that is exactly what this will do.


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

Who is online

Users browsing this forum: Marisol 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