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

Automatically Prefix for ThemaPoster
http://creator.themasoftware.com/forum/viewtopic.php?f=3&t=7504
Page 1 of 1

Author:  JiPla [ December 9th, 2023, 10:57 am ]
Post subject:  Automatically Prefix for ThemaPoster

Hello,
I want my prefix to be automatically recognized and sent to ThemePoster.
How can I create this?
Without me specifying it manually in the ThemeCreator.
The genre is displayed in ThemeCreator when creating the genre.
I have also maintained the prefix Neat in all forums at ThemaPoster.

Author:  Freddy [ December 9th, 2023, 12:09 pm ]
Post subject:  Re: Automatically Prefix for ThemaPoster

Hi,

depends on your prefix names really.

You can add this line in "Main" template anywhere:
Code:
<prefix>PREFIX_TAG</prefix>


Should be prefix tag name inside (not the title). You can look-up the tag names in themaPoster prefixes table.

For example:
Code:
<prefix>[MULTI]</prefix>


Depends on what genre you mean, just put the genre tag inside and make it's matching in themaPoster as well.

Author:  JiPla [ December 9th, 2023, 9:59 pm ]
Post subject:  Re: Automatically Prefix for ThemaPoster

What I mean are these.
For example:

This is output in the ThemaCreator.
Genre: Action, Science Fiction, Horror

When posting on the ThemaPoster, it should adopt one of them.
So that when you automatically post to a page the prefix is set.

Author:  Freddy [ December 10th, 2023, 2:21 pm ]
Post subject:  Re: Automatically Prefix for ThemaPoster

If those are IMDB genres add this line in "Main" themaCreator template:
Code:
<prefix>{#imdbGenres#}</prefix>


Add this replacement to leave only the first genre:

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


Replace with:
Code:
$1$2


Enable regex search.

Make sure in themaPoster you have prefixes added which names are 100% the same as genres (if you didn't you need rename / add and Sync the prefixes then).

Author:  JiPla [ December 10th, 2023, 4:07 pm ]
Post subject:  Re: Automatically Prefix for ThemaPoster

Thanks for your help.
It worked great

How can I adjust the regex so that it takes the second or third genre.
Maybe I'll need that later.

Author:  Freddy [ December 10th, 2023, 7:30 pm ]
Post subject:  Re: Automatically Prefix for ThemaPoster

Second:

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


Replace with:
Code:
$1$2$3


Enable regex search.

Third:

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


Replace with:
Code:
$1$2$3


Enable regex search.

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