It is currently March 28th, 2024, 1:58 pm



Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Genre -> Prefix
PostPosted: May 9th, 2021, 5:00 pm 

Joined: January 16th, 2021, 9:56 pm
Posts: 42
Hello,

How can i set the first {#imdbGenres#} as an Prefix. Have someone an idea ?


Top
 Profile  
Reply with quote  
 Post subject: Re: Genre -> Prefix
PostPosted: May 9th, 2021, 5:14 pm 
Site Admin
User avatar

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

it's possible, but will be a bit complicated.

Will write this a bit later.

_________________
themaPoster | themaCreator | themaManager | themaLeecher | themaRegister


Top
 Profile  
Reply with quote  
 Post subject: Re: Genre -> Prefix
PostPosted: June 4th, 2021, 7:08 am 
Site Admin
User avatar

Joined: March 10th, 2011, 11:14 pm
Posts: 12629
Location: Earth
In themaPoster for prefixes you would need to make sure that in "CONFIG" -> "Prefixes", the prefix tag (not title) is the genre name (the same as it appear from IMDB).

Then make sure that prefixes are synced in both programs (they are synced on start-up always or via "Sync" menu (at the top) -> "Program name" -> "Sync prefixes").

In themaCreator "Main" template you can add this line:
Code:
<prefix>{#imdbGenres#}</prefix>


And with replacement you would need to remove additional genres to leave only one.

Search for:
Code:
<prefix>(.+?),.+</prefix>


Replace with:
Code:
<prefix>$1</prefix>


Enable regex search.

_________________
themaPoster | themaCreator | themaManager | themaLeecher | themaRegister


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

Who is online

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