photools.com Community

IMatch Discussion Boards => General Discussion and Questions => Topic started by: Darius1968 on July 16, 2022, 06:12:00 AM

Title: Data Driven Category's Replace Mask With Soft Return
Post by: Darius1968 on July 16, 2022, 06:12:00 AM
I was wondering if it's possible to set a replace mask of a data driven category to include paragraph marks?  (eg., if a line consists of Season #, then the result could become Video {lf} Season #)
...Such that:
Season #
...is now...
Video
Season #
Title: Re: Data Driven Category's Replace Mask With Soft Return
Post by: Mario on July 16, 2022, 09:41:52 AM
The replacement is performed after the hierarchies are detected.

I suggest you produce Video|Season # in a tag first, e.g. using the Metadata Mechanic or a Metadata Template. This gives you access to variables and if conditions etc.
Then create your data-driven category based on that tag, and let it detect the hierarchy by looking at the |.
Title: Re: Data Driven Category's Replace Mask With Soft Return
Post by: Darius1968 on July 16, 2022, 10:06:47 AM
With that in mind, is it possible, via Metadata Mechanic or a Metadata Template, to involve a Shift+Enter?
Such that: 
Quincy M.E.
Season 8 Episode 4
Dying For A Drink
First Air Date:  Nov. 3, 1982

...becomes...
Quincy M.E.
Video
Season 8 Episode 4
Dying For A Drink
First Air Date:  Nov. 3, 1982

Title: Re: Data Driven Category's Replace Mask With Soft Return
Post by: Mario on July 16, 2022, 02:08:31 PM
What would that Shift+Enter be for?
Data-driven categories don't care for line feeds, you can split hierarchies using any character. Why not insert | into the tag and let the data-driven category produce hierarchies based on | ?

Quincy M.E.|Video|Season 8 Episode 4|Dying For A Drink|First Air Date:  Nov. 3, 1982

as the source and then detect hierarchies for '|' would do what you want.
Title: Re: Data Driven Category's Replace Mask With Soft Return
Post by: Darius1968 on July 16, 2022, 02:22:29 PM
Because, I already have many files that, for readability reasons, I have already used Shift+Enter to put different parts of the title on different lines.  So, to effect what you suggest, I would have to, as it stands now, manually go though my many files and replace those line feeds with |, unless you can tell me about a quicker way to complete the task with either Metadata Mechanic or a metadata template. 

Special note: 
I have already gotten my data driven category to acknowledge a line feed for my values in the Title Tag, using {lf}.  Problem is that if I do that, it breaks the Detect Hierarchies in that that is the only thing it will acknowledge, ignoring anything thereafter.  Is this a bug? 
Title: Re: Data Driven Category's Replace Mask With Soft Return
Post by: Mario on July 16, 2022, 03:30:38 PM
I don't understand.
Title: Re: Data Driven Category's Replace Mask With Soft Return
Post by: Darius1968 on July 16, 2022, 03:47:28 PM
What don't you understand? 
Title: Re: Data Driven Category's Replace Mask With Soft Return
Post by: Mario on July 16, 2022, 04:00:02 PM
Special note.
Title: Re: Data Driven Category's Replace Mask With Soft Return
Post by: Darius1968 on July 16, 2022, 04:09:01 PM
What I mean there is that, as is, my title tag is divided into four parts by way of a line feed (Shift+Enter), and that I'm able to get my data driven category to detect hierarchy on the line feed, by entering {lf} as a character for the detect hierarchies.  But you say data driven categories aren't supposed to recognize line feeds.  So, why is it when I enter {lf}
Title: Re: Data Driven Category's Replace Mask With Soft Return
Post by: Mario on July 16, 2022, 04:58:20 PM
I meant this is not a default hierarchy separator. Using line feeds to separate hierarchies is uncommon.
If you got it already working with {lf}, good. I believe MD mechanic does not know the special {lf} token I've added to data-driven categories, and neither do MD templates.