themaCreator
http://creator.themasoftware.com/forum/

Genre -> Prefix
http://creator.themasoftware.com/forum/viewtopic.php?f=18&t=7100
Page 1 of 1

Author:  psychopanda [ May 9th, 2021, 5:00 pm ]
Post subject:  Genre -> Prefix

Hello,

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

Author:  Freddy [ May 9th, 2021, 5:14 pm ]
Post subject:  Re: Genre -> Prefix

Hi,

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

Will write this a bit later.

Author:  Freddy [ June 4th, 2021, 7:08 am ]
Post subject:  Re: Genre -> Prefix

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.

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